PDA

View Full Version : Aptitude vs apt-get



MontelEdwards
May 13th, 2009, 03:21 AM
which do you perfer?
i like aptitude

Gannon8
May 13th, 2009, 03:25 AM
apt-get

Its a TON easier to filter through and get packages you want.

woot 1st post :)

Skripka
May 13th, 2009, 03:26 AM
Niether...then again I'm an Archer ;)

Tipped OuT
May 13th, 2009, 03:28 AM
:lolflag: Look at the poll.

EDIT: Ah dang it, some one voted for aptitude.

MontelEdwards
May 13th, 2009, 03:58 AM
:lolflag: Look at the poll.

EDIT: Ah dang it, some one voted for aptitude.

Hahahaha

konqueror7
May 13th, 2009, 04:08 AM
apt-get, the command seems more logical in stating the functionality...:P

monsterstack
May 13th, 2009, 08:15 AM
I prefer aptitude for removing applications. Its default behaviour is to autoremove, so you can completely purge stuff easily. And it doesn't mind if one your apps is spelt wrong, so whilst


sudo aptitude purge amarok vlc oepmoffice

will tell you spelt openoffice incorrectly, it will remove the other two apps. Whereas this:


sudo apt-get autoremove --purge amarok vlc oepmoffice

Won't work very well at all. This is why my favourite bash alias of all is:


alias nuke='sudo aptitude purge $@'

Lampi
May 13th, 2009, 08:47 AM
I use apt-get to handle source code mostly, aptitude if I want to upgrade.

BTW: why should I use aptitude 'safe-upgrade' instead of 'aptitude upgrade'? What's the difference?

monsterstack
May 13th, 2009, 08:56 AM
I use apt-get to handle source code mostly, aptitude if I want to upgrade.

BTW: why should I use aptitude 'safe-upgrade' instead of 'aptitude upgrade'? What's the difference?

I don't know. Let me manpage that for you:


safe-upgrade
Upgrades installed packages to their most recent version. Installed
packages will not be removed unless they are unused (see the
section “Managing Automatically Installed Packages” in the aptitude
reference manual). Packages which are not currently installed may
be installed to resolve dependencies unless the --no-new-installs
command-line option is supplied.

It is sometimes necessary to remove one package in order to upgrade
another; this command is not able to upgrade packages in such
situations. Use the full-upgrade command to upgrade as many
packages as possible.

That's cool. I didn't know that. Bog-standard "upgrade" seems to have been replaced by this action. Anyway the reason I voted for aptitude in general, however, is this:


sudo aptitude

lethalfang
May 13th, 2009, 10:03 AM
Is there an equivalent of "sudo aptitude hold my-app" (i.e., do not upgrade to a newer version of an app) for apt-get?

monsterstack
May 13th, 2009, 10:15 AM
Is there an equivalent of "sudo aptitude hold my-app" (i.e., do not upgrade to a newer version of an app) for apt-get?

As root:

echo 'vlc hold' | dpkg --set-selections
See if it works:


dpkg --get-selections|grep vlc

Works for me:


libvlc2 install
libvlccore0 install
vlc hold
vlc-data install
vlc-nox install


To undo:


echo 'vlc install' | dpkg --set-selections

Lampi
May 13th, 2009, 12:09 PM
echo 'vlc hold' | dpkg --set-selectionsI usually go with this one - it's because of the KDE4 package manager: this one only checks the holds of "dpkg --set-selections", so if I put a package on hold using "aptitude hold", the KDE package manager will ignore this.

calrogman
May 13th, 2009, 02:32 PM
Aptitude every time. Apt-get and synaptic just can't handle dependencies nearly as well as aptitude.