LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-25-2010, 10:33 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question 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.
 
Old 08-25-2010, 10:38 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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".
 
Old 08-25-2010, 10:47 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
apt-get* can do all of the things that aptitude can and can do more.
 
Old 08-25-2010, 12:14 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Umm.. like what?

And aptitude has been recommended over apt-get by Debian Themselves since, what, Sarge?
 
Old 08-25-2010, 08:26 PM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by AlucardZero View Post
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.

Last edited by tommcd; 08-25-2010 at 08:29 PM.
 
Old 09-03-2010, 08:51 AM   #6
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks for the tip. I'll stick to "apt-get" while in Ubuntu.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get vs. aptitude freddie_leaf Debian 28 01-13-2011 06:56 AM
I bricked my NAS? :( aptitude, apt-get, apt-cache segfaults immediately omegaworks Linux - Server 5 11-07-2009 08:21 AM
aptitude instead of apt-get cccc Debian 2 07-19-2009 01:07 PM
[SOLVED] apt-get and aptitude riganta Linux - Desktop 8 03-06-2009 04:07 PM
aptitude vs apt-get PCalitrack Ubuntu 3 08-08-2006 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration