⬆️ ⬇️

Cleaning Ubuntu from unnecessary applications

As it is known, the filling of Ubunt's CD-image is formed according to the principle “one task - one application”, and nothing beyond that. However, the applications that are on the CD are also not liked by everyone, and sometimes there is an overwhelming desire to remove them. Immediately the question arises: will this program pull most of the system behind itself by chance?

This can be easily recognized. In the description of the ubuntu-desktop metapackage (which by itself does not contain anything, but simply has a large number of dependencies that are installed during the installation of the system), there is a line “Recommends” which contains packages that, although installed during the installation of the system, which can be painlessly removed, and they will not pull vital packages with them.

You can see this line like this:

apt-cache show ubuntu-desktop | grep Recommends

But in this case, we will be presented with an extensive, rather inconvenient list of packages, and it is very easy to get confused in it.

Let's make it easier. Type the command:

apt-cache show ubuntu-desktop | grep Recommends | grep PACKETNAME > / dev / null; echo $?

where PACKET_NAME is the actual name of the package that we want to remove.

If the output of the command is 0, then the program can be deleted; if 1, then either it’s not worth it (since it is most likely indicated in the ubuntu-desktop dependencies), or you put it yourself.

Similarly, I have already deleted gnome-games, rhythmbox, evolution and transmission. The flight is normal.



Attention! Before removing the package, carefully look at the dependencies that may be removed with it. If some other important application is indicated there, then still it is better not to touch the package.


')

Source: https://habr.com/ru/post/45795/



All Articles