Skip to content

Instantly share code, notes, and snippets.

@NickSeagull
Last active May 2, 2024 13:30
Show Gist options
  • Star 71 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save NickSeagull/ed43a80db6a54d69ded3e18f8babaf19 to your computer and use it in GitHub Desktop.
Save NickSeagull/ed43a80db6a54d69ded3e18f8babaf19 to your computer and use it in GitHub Desktop.
Updated Jan 22nd, 2024 - Simple command to remove all "bloatware" from ubuntu
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
@Zawachii
Copy link

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

@bonkmaykrQ
Copy link

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.

Copy link

ghost commented Jan 13, 2021

Has anyone tested this code

Yes. Rebooted and everything's okay.

@AbandonedCart
Copy link

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

@arafatx
Copy link

arafatx commented Aug 18, 2021

Thanks I only use ubuntu for bash scripting. No need the other useless app.

@alimsk
Copy link

alimsk commented Sep 4, 2021

is it ok to use in 20.04?

@AbandonedCart
Copy link

@spacysky322

Tested on a default install of 20.04 LTS. After dropping a few missing packages, the rest worked fine

Two comments above yours

@alimsk
Copy link

alimsk commented Sep 5, 2021

sorry didn't read it, thanks

Copy link

ghost commented Oct 18, 2021

I could see it freed 40 MB of valuable space. I can confirm this is absolutely okay.

@mobagenie
Copy link

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.. 😒

@CHJ85
Copy link

CHJ85 commented Aug 20, 2022

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.

@pepe-verde
Copy link

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!

@NickSeagull
Copy link
Author

@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
Copy link

@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 :)

@masterleo
Copy link

Maybe add mines majong and sudoku as this was not removed on 22.04 and this was top google result.

@masterleo
Copy link

masterleo commented Apr 29, 2023

the remaing pakets :
aisleriot brltty cheese deja-dup duplicity gnome-accessibility-themes
gnome-mahjongg gnome-mines gnome-sudoku gnome-video-effects

@SagXD
Copy link

SagXD commented Jun 22, 2023

Thanks

@NickSeagull
Copy link
Author

If someone wants to make a full command here that works, I'll happily replace the one above so its updated :)

@mdemerson
Copy link

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

@NickSeagull
Copy link
Author

Thanks @mdemerson

@CalvinWorst
Copy link

CalvinWorst commented Feb 9, 2024

@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

@NickSeagull
Copy link
Author

Lovely, glad that this has been useful @CalvinWorst :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment