Re: Can 12.04 be lightened?
Originally Posted by
DuckHook
This is because APT is designed very conservatively to leave all sorts of libs/services/modules untouched when apps are removed: in the interest of safety, to preserve dependencies and so as not to inadvertently break other apps. This is why those of us interested in highly efficient and minimal installs always start with next to nothing and then build up only what we want.
I'm afraid you're selling apt a little short. When apt installs a package as a dependency of another package (except as a dependency of a metapackage), it marks that package as automatically installed. Any package installed as a dependency that is no longer a dependency of any package on the system is called an orphaned package. And all orphaned packages (no-longer-needed dependencies) can be removed with
Code:
sudo apt-get autoremove
Of course, as mentioned, metapackages are different in that their dependencies are marked as manually installed. So, for example, if you install ubuntu-desktop, Thunderbird and Firefox are installed. If you decide you want to use Chrome and remove Firefox, ubuntu-desktop also has to be removed. However, this does not automatically remove Thunderbird, nor does it make Thunderbird an "Orphaned Package", because Thunderbird is marked as manually installed.
You can change whether a package is marked as manually or automatically installed with the apt-mark command. You can view the mark status of all installed packages in the file /var/lib/apt/extended_states, or by using the showmanual and showauto modes of apt-mark.
Jane, stop this crazy thing!
Bookmarks