I was trying to figure out how to install libgtk2.0-dev and found that I have to use
sudo aptitude install
instead of
sudo apt-get install
Why these two different ways of getting stuff?
|
I was trying to figure out how to install libgtk2.0-dev and found that I have to use
instead of
Why these two different ways of getting stuff?
| |||
|
feedback
|
|
I usually replace all Run | |||
|
feedback
|
|
apt-get and aptitude are both interfaces to dpkg, the Debian package manager. aptitude came later than the apt- suite of commands and has some usability features not present in the latter, but I have yet to come across a case where you have to use one over the other. The Wikipedia entry for aptitude states that it started out as a front-end to the apt- suite:
| |||
|
feedback
|
|
Long-time Debian users have told me elsewhere that The GUI program | |||
|
feedback
|
|
Aptitude and apt-get serve the exact same purpose for Ubuntu Dapper and beyond. Prior to that, apt-get might not auto-remove things as it should. | |||
|
feedback
|
|
One of the minor differences is that if you have packages marked for 'auto removal' that while a simple apt-get install will list them, an aptitude install will go ahead and remove them as part of the package install. Not a big deal unless you install packages with 'build-dep', starting in 8.10 all build-dep installed packages are marked as auto installed (will be added to auto remove in apt-get and removed in aptitude. (if you plan on building and using 'build-dep' then this prevents the auto marking if you wish to keep (and or prevent a large auto remove list in apt-get Ex. mplayer sudo apt-get build-dep mplayer -o APT::Get::Build-Dep-Automatic=false | |||
|
feedback
|