LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Mixing apt-* and aptitude NOK? (https://www.linuxquestions.org/questions/ubuntu-63/mixing-apt-%2A-and-aptitude-nok-828408/)

littlebigman 08-25-2010 10:33 AM

Mixing apt-* and aptitude NOK?
 
Hello

I read somewhere that it's not a good idea to mix the use of apt-* (eg. apt-get, apt-file, etc.) and "aptitude". I guess they're not using the same database to keep track of things.

Problem is, they don't offer the same features:

"apt-get safe-upgrade" doesn't exist, so have to use "aptitude safe-upgrade".

"aptitude show/list mypackage" doesn't show the files that an uninstalled package (ie. still in depot) contains, so have to use "apt-file show mypackage".

So... what's the solution? Is it really a problem to use "apt-*" and "aptitude", depending on what we need to do?

Thank you.

AlucardZero 08-25-2010 10:38 AM

There's no problem using apt-file and aptitude. Just try not to mix apt-get and aptitude.

"safe-upgrade" is aka "upgrade". "full-upgrade" is aka "dist-upgrade".

amani 08-25-2010 10:47 AM

apt-get* can do all of the things that aptitude can and can do more.

AlucardZero 08-25-2010 12:14 PM

Umm.. like what?

And aptitude has been recommended over apt-get by Debian Themselves since, what, Sarge?

tommcd 08-25-2010 08:26 PM

Quote:

Originally Posted by AlucardZero (Post 4077403)
And aptitude has been recommended over apt-get by Debian Themselves since, what, Sarge?

Yes, but Ubuntu is not Debian.
I recommend using apt-get in Ubutnu. Based on a lot of testing I have done, using the update-manager in Ubuntu is the same as running:
Code:

sudo apt-get update
sudo apt-get dist-upgrade

Synaptic Package Manager also seems to use apt-get based on my experince.
There are subtle differences between the way apt-get and aptitude handle dependencies. How significant this is in Ubuntu, I really don't know. But I recommend using apt-get just to keep in sync with update-manager, and synaptic package manager, just in case you ever use those.
I do like searching for things with aptitude though. This is fine.

littlebigman 09-03-2010 08:51 AM

Thanks for the tip. I'll stick to "apt-get" while in Ubuntu.


All times are GMT -5. The time now is 02:32 AM.