Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README, script and packages #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Linux Mint mini
_a minimal Linux_

run the `mini.sh` to purge Linux Mint from software that you likely don't need or use.

After running bash script on a new Linux Mint install there is _1971_ software packages installed `apt list --installed | wc -l`

- i also added `sudo rm -r /etc/libreoffice/registry/res \` as it was not removed due to not being empty

_a minimal Linux_
## Running the script
run the `script.sh` to purge Linux Mint from software that you likely don't need or use.
181 changes: 65 additions & 116 deletions packages.txt
Original file line number Diff line number Diff line change
@@ -1,87 +1,61 @@
thunderbird
transmission-gtk
gnome-todo
aisleriot
baobab
rhythmbox
branding-ubuntu
cheese
vino
shotwell
totem
usb-creator-gtk
cheese-common
deja-dup
gnome-calendar
remmina
simple-scan
thunderbird-gnome-support
aisleriot
gnome-mahjongg
gnome-mines
gnome-sudoku
branding-ubuntu
libreoffice-style-breeze
libreoffice-gnome
libreoffice-writer
libreoffice-calc
libreoffice-impress
libreoffice-math
libreoffice-ogltrans
libreoffice-pdfimport
duplicity
example-content
libreoffice-l10n-en-gb
libreoffice-l10n-es
libreoffice-l10n-zh-cn
libreoffice-l10n-zh-tw
libreoffice-l10n-pt
libreoffice-l10n-pt-br
libreoffice-l10n-de
libreoffice-l10n-fr
libreoffice-l10n-it
libreoffice-l10n-ru
libreoffice-l10n-en-za
libreoffice-help-en-gb
libreoffice-help-es
libreoffice-help-zh-cn
libreoffice-help-zh-tw
libreoffice-help-pt
libreoffice-help-pt-br
libreoffice-help-de
libreoffice-help-fr
libreoffice-help-it
libreoffice-help-ru
libreoffice-help-en-us
thunderbird-locale-en
thunderbird-locale-en-gb
thunderbird-locale-en-us
thunderbird-locale-es
thunderbird-locale-es-ar
thunderbird-locale-es-es
thunderbird-locale-zh-cn
thunderbird-locale-zh-hans
thunderbird-locale-zh-hant
thunderbird-locale-zh-tw
thunderbird-locale-pt
thunderbird-locale-pt-br
thunderbird-locale-pt-pt
thunderbird-locale-de
thunderbird-locale-fr
thunderbird-locale-it
thunderbird-locale-ru
gir1.2-rb-3.0
gir1.2-totem-1.0
gir1.2-totemplparser-1.0
gnome-calendar
gnome-mahjongg
gnome-mines
gnome-sudoku
gnome-todo
gnome-video-effects
guile-2.0-libs
hunspell-de-at-frami
hunspell-de-ch-frami
hunspell-de-de-frami
hunspell-en-au
hunspell-en-ca
hunspell-en-gb
hunspell-en-za
hunspell-es
hunspell-fr
hunspell-fr-classical
hunspell-it
hunspell-pt-br
hunspell-pt-pt
hunspell-ru
hyphen-de
hyphen-en-ca
hyphen-en-gb
hyphen-en-us
hyphen-fr
hyphen-hr
hyphen-it
hyphen-pl
hyphen-pt-br
hyphen-pt-pt
hyphen-ru
libabw-0.1-1
libavahi-ui-gtk3-0
libcheese8
libcheese-gtk25
libdmapsharing-3.0-2
libexttextcat-2.0-0
libexttextcat-data
libfreehand-0.1-1
libgnome-games-support-1-3
libgnome-games-support-common
libgnome-todo
libgom-1.0-0
libgrilo-0.3-0
liblangtag-common
liblangtag1
liblangtag-common
libmessaging-menu0
libmhash2
libminiupnpc10
Expand All @@ -90,18 +64,18 @@ libmythes-1.2-0
libnatpmp1
libneon27-gnutls
libpagemaker-0.0-0
libraptor2-0
librasqal3
librdf0
libreoffice
libreoffice-avmedia-backend-gstreamer
libreoffice-base-core
libreoffice-common
libreoffice-core
libreoffice-draw
libreoffice-gtk3
libreoffice-style-breeze
libreoffice-style-elementary
libreoffice-style-galaxy
libreoffice-style-tango
libraptor2-0
librasqal3
libreoffice-writer
librevenge-0.0-0
librhythmbox-core10
libtotem0
Expand All @@ -110,59 +84,34 @@ libwpd-0.10-10
libwpg-0.3-3
libwps-0.4-4
libyajl2
mythes-de
mythes-de-ch
mythes-en-au
mythes-en-us
mythes-fr
mythes-it
mythes-pt-pt
mythes-ru
python3-uno
rhythmbox-data
rhythmbox-plugin-alternative-toolbar
rhythmbox-plugins
remmina
remmina-common
remmina-plugin-rdp
remmina-plugin-secret
remmina-plugin-vnc
duplicity
rhythmbox
rhythmbox-data
rhythmbox-plugin-alternative-toolbar
rhythmbox-plugins
seahorse-daemon
shotwell
shotwell-common
totem-common
totem-plugins
transmission-common
cheese-common
gnome-todo-common
libgnome-todo
gnome-video-effects
libcheese-gtk25
libcheese8
simple-scan
thunderbird
thunderbird-gnome-support
totem
transmission-gtk
uno-libs3
ure
usb-creator-gtk
vino
zeitgeist-core
hunspell-de-at-frami
hunspell-de-ch-frami
hunspell-de-de-frami
hunspell-en-au
hunspell-en-ca
hunspell-en-gb
hunspell-en-za
hunspell-es
hunspell-fr
hunspell-fr-classical
hunspell-it
hunspell-pt-br
hunspell-pt-pt
hunspell-ru
hyphen-de
hyphen-en-ca
hyphen-en-gb
hyphen-en-us
hyphen-fr
hyphen-hr
hyphen-it
hyphen-pl
hyphen-pt-br
hyphen-pt-pt
hyphen-ru
mythes-de
mythes-de-ch
mythes-en-au
mythes-en-us
mythes-fr
mythes-it
mythes-pt-pt
mythes-ru
27 changes: 14 additions & 13 deletions script.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
#!/bin/bash
#!/usr/bin/env bash


# Run as root
if [ $UID -ne 0 ]; then
exec sudo -s "$0" "$@"
fi


# Warn user
echo "This script removes a LOT of packages!"
read -p "Do you want to continue? (y/N)" continue
read -p "Do you want to continue? (y/N) " yn

case "$continue" in
Y|y*);;
*) exit 1;;
case "$yn" in
Y|y*);;
*) exit 1;;
esac


# Run as root
if [ $UID -ne 0 ]; then
exec sudo -s "$0" "$@"
fi


printf "Removing packages...""\n"

while read package
do
apt purge --ignore-missing --auto-remove -y "$package"
dpkg -P "$package"
done < "packages.txt"

printf "Running 'apt-get autopurge'...""\n"
apt-get autopurge

printf "\n""Packages removed successfully!"