-
-
Save NickSeagull/ed43a80db6a54d69ded3e18f8babaf19 to your computer and use it in GitHub Desktop.
sudo apt-get remove \ | |
aisleriot \ | |
brltty \ | |
duplicity \ | |
empathy \ | |
empathy-common \ | |
example-content \ | |
gnome-accessibility-themes \ | |
gnome-contacts \ | |
gnome-mahjongg \ | |
gnome-mines \ | |
gnome-orca \ | |
gnome-screensaver \ | |
gnome-sudoku \ | |
gnome-video-effects \ | |
landscape-common \ | |
libreoffice-avmedia-backend-gstreamer \ | |
libreoffice-base-core \ | |
libreoffice-calc \ | |
libreoffice-common \ | |
libreoffice-core \ | |
libreoffice-draw \ | |
libreoffice-gnome \ | |
libreoffice-gtk \ | |
libreoffice-impress \ | |
libreoffice-math \ | |
libreoffice-ogltrans \ | |
libreoffice-pdfimport \ | |
libreoffice-style-galaxy \ | |
libreoffice-style-human \ | |
libreoffice-writer \ | |
libsane \ | |
libsane-common \ | |
python3-uno \ | |
rhythmbox \ | |
rhythmbox-plugins \ | |
rhythmbox-plugin-zeitgeist \ | |
sane-utils \ | |
shotwell \ | |
shotwell-common \ | |
telepathy-gabble \ | |
telepathy-haze \ | |
telepathy-idle \ | |
telepathy-indicator \ | |
telepathy-logger \ | |
telepathy-mission-control-5 \ | |
telepathy-salut \ | |
totem \ | |
totem-common \ | |
totem-plugins \ | |
printer-driver-brlaser \ | |
printer-driver-foo2zjs \ | |
printer-driver-foo2zjs-common \ | |
printer-driver-m2300w \ | |
printer-driver-ptouch \ | |
printer-driver-splix |
Everytime i use this basic script it breaks my settings application. So to repair it i just used Sudo apt install gnome-control-center.
btw im on Ubuntu 18.04
Thats because alot of these are gnome-settings dependencies.
If you're on KDE or another window manager/desktop then you don't need them.
Has anyone tested this code
Yes. Rebooted and everything's okay.
Tested on a default install of 20.04 LTS. After dropping a few missing packages, the rest worked fine
sudo apt-get remove aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix
Thanks I only use ubuntu for bash scripting. No need the other useless app.
is it ok to use in 20.04?
@spacysky322
Tested on a default install of 20.04 LTS. After dropping a few missing packages, the rest worked fine
Two comments above yours
sorry didn't read it, thanks
I could see it freed 40 MB of valuable space. I can confirm this is absolutely okay.
After this operation, 22.7 MB disk space will be freed.
Do you want to continue? [Y/n]
😔 This is so far away from my expectation 😞
I know im install non GUI ubuntu but still meh.. 😒
I think that it's safe to say if you want a de-bloated Ubuntu, do not install Ubuntu.
"Bloat" is very subjective. To me, bloat means telemetry tools, printer / scanner tools and drivers as well as Snap.
With distros such as Linux Mint, most of this stuff have been stripped out.
Please excuse the luddite question, but would this work on Lubuntu you think?
Trying to get the minimum OS possible on an old AMD notebook. Thanks in advance!
@pepe-verde Lubuntu is roughly speaking Ubuntu server with the LXDE environment. It should work, although maybe there are some packages in this line of code that will be missing.
Having used Linux on an old netbook (Asus EEEPC 901) a year ago, my recommendation (personal one, probably a lot of people here will get into the discussion and recommend other stuff, which is completely fair, but I went with this because of the balance of convenience vs lightness) would be to go with ArchLinux32 and install some very lightweight window manager like i3 or DWM (those are tiling window managers that are used through the keyboard, which has some learning curve, as an alternative you can use LXDE which is what Lubuntu comes with).
Arch has currently the biggest package repository (SteamDeck OS is based on Arch), although for the 32bit version you will have to compile some stuff and although it looks intimidating, by following the steps in the installation guide it is very straightforward to install, just takes some time.
Due to life priorities I'm currently between MacOS and Windows, so not really maintaining this, but feel free to ask me anything
@pepe-verde Lubuntu is roughly speaking Ubuntu server with the LXDE environment. It should work, although maybe there are some packages in this line of code that will be missing.
Thank you so much Nick! I'll try the sudo apt-get remove
option first and if not then consider switching to ArchLinux. Wish me luck :)
Maybe add mines majong and sudoku as this was not removed on 22.04 and this was top google result.
the remaing pakets :
aisleriot brltty cheese deja-dup duplicity gnome-accessibility-themes
gnome-mahjongg gnome-mines gnome-sudoku gnome-video-effects
Thanks
If someone wants to make a full command here that works, I'll happily replace the one above so its updated :)
This command works in bash on ubuntu 22.04LTS as of 4th of jan 2024, I split it into multiple lines for easy removal/addition in future:
sudo apt-get remove \
aisleriot \
brltty \
duplicity \
empathy \
empathy-common \
example-content \
gnome-accessibility-themes \
gnome-contacts \
gnome-mahjongg \
gnome-mines \
gnome-orca \
gnome-screensaver \
gnome-sudoku \
gnome-video-effects \
landscape-common \
libreoffice-avmedia-backend-gstreamer \
libreoffice-base-core \
libreoffice-calc \
libreoffice-common \
libreoffice-core \
libreoffice-draw \
libreoffice-gnome \
libreoffice-gtk \
libreoffice-impress \
libreoffice-math \
libreoffice-ogltrans \
libreoffice-pdfimport \
libreoffice-style-galaxy \
libreoffice-style-human \
libreoffice-writer \
libsane \
libsane-common \
python3-uno \
rhythmbox \
rhythmbox-plugins \
rhythmbox-plugin-zeitgeist \
sane-utils \
shotwell \
shotwell-common \
telepathy-gabble \
telepathy-haze \
telepathy-idle \
telepathy-indicator \
telepathy-logger \
telepathy-mission-control-5 \
telepathy-salut \
totem \
totem-common \
totem-plugins \
printer-driver-brlaser \
printer-driver-foo2zjs \
printer-driver-foo2zjs-common \
printer-driver-m2300w \
printer-driver-ptouch \
printer-driver-splix
Thanks @mdemerson
@NickSeagull just a heads up, I will be including this command in a blog post here soon. Was trying to get an Ubuntu VM up and running for a Workshop I hosted and your command came in handy when dealing with performance issues.
The blog will be up sometime next week on my LinkedIn page: LinkedIn.com/in/CalvinWorst
Edit: typo
Lovely, glad that this has been useful @CalvinWorst :)
for 24.04 LTS?
Everytime i use this basic script it breaks my settings application. So to repair it i just used Sudo apt install gnome-control-center.
btw im on Ubuntu 18.04