Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: aptitude or apt-get?
PostPosted: Thu Jun 04, 2009 1:27 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
I hope I'm not opening up a big can of worms. That's not intended here.

I've searched google and find a few older articles comparing the difference but for a newbie like me it's really hard to tell if things have changed over the last 2 years. It appears that aptitude was probably the better of the two, but that apt-get has improved.

The main reason I ask is that it appears everyone uses apt-get, almost any tutorial I find out there uses apt-get instead of aptitude.


Top
   
 Post subject: Re: aptitude or apt-get?
PostPosted: Thu Jun 04, 2009 3:52 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
waldo wrote:
I hope I'm not opening up a big can of worms. That's not intended here.

I've searched google and find a few older articles comparing the difference but for a newbie like me it's really hard to tell if things have changed over the last 2 years. It appears that aptitude was probably the better of the two, but that apt-get has improved.

The main reason I ask is that it appears everyone uses apt-get, almost any tutorial I find out there uses apt-get instead of aptitude.

Doesn't matter really all that much. I tend to use aptitude more often than not cause it's a bit "smarter" usually. It really just comes down to what you're more familiar/comfortable with ;)

_________________
Image
Where "Thought Crime" is commited
http://www.rejecttheherd.net


Top
   
 Post subject:
PostPosted: Thu Jun 04, 2009 5:53 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
FYI, if you launch aptitude without any parameter, it will launch a full text UI.

If you use it with parameters, it more or less acts like apt-get.

Personally, I use aptitude from the commandline (so, "aptitude update && aptitude dist-upgrade" or "aptitude install foo")


Top
   
 Post subject:
PostPosted: Fri Jun 05, 2009 10:20 am 
Offline
Senior Member

Joined: Tue Apr 29, 2008 6:26 pm
Posts: 58
Website: http://blog.shadypixel.com/
The main difference is in their conflict resolution. So, if an update is available, but it needs other packages to be upgraded/downgraded/installed... they handle the situation differently.

If you're only ever tracking an ubuntu release or debian stable, in practice, there's not going to be any difference. OTOH, if you're tracking mostly debian stable, but with some packages from testing or unstable, they work differently and you might prefer one or the other. In my experience apt-get handles more situations than aptitude, but its conflict resolution is "dumb" and mostly involves upgrading packages until it works. aptitude will often give you a list of choices on how to resolve a conflict, some of which may be much "smarter" than apt-get.


Top
   
 Post subject:
PostPosted: Fri Jun 05, 2009 4:13 pm 
Offline
Newbie

Joined: Wed Apr 08, 2009 1:35 am
Posts: 4
I am using aptitude because of this link

http://pthree.org/2007/08/12/aptitude-vs-apt-get/

I am felt comfortable using aptitude since it will do the same way like apt-get.


Top
   
 Post subject:
PostPosted: Sun Jun 07, 2009 4:29 am 
Offline
Senior Member

Joined: Thu Sep 11, 2008 10:49 pm
Posts: 70
ICQ: 4155271
Website: http://mikeage.net
WLM: msn@mikeage.net
Yahoo Messenger: m_i_k_e_miller
AOL: MikeageCM
Location: Israel
You're all missing an important difference:

Code:
mikeage@linode ~$ aptitude -h | tail -n 1
                  This aptitude does not have Super Cow Powers.
mikeage@linode ~$ apt-get -h | tail -n 1
                       This APT has Super Cow Powers.


and as a result

Code:
mikeage@linode ~$ aptitude moo
There are no Easter Eggs in this program.
mikeage@linode ~$ apt-get moo
         (__)
         (oo)
   /------\/
  / |    ||
 *  /\---/\
    ~~   ~~
...."Have you mooed today?"...


Although, to be fair
Code:
mikeage@linode ~$ aptitude -v moo
There really are no Easter Eggs in this program.
mikeage@linode ~$ aptitude -vv moo
Didn't I already tell you that there are no Easter Eggs in this program?
mikeage@linode ~$ aptitude -vvv moo
Stop it!
mikeage@linode ~$ aptitude -vvvv moo
Okay, okay, if I give you an Easter Egg, will you go away?
mikeage@linode ~$ aptitude -vvvvv moo
All right, you win.

                               /----\
                       -------/      \
                      /               \
                     /                |
   -----------------/                  --------\
   ----------------------------------------------
mikeage@linode ~$ aptitude -vvvvvv moo
What is it?  It's an elephant being eaten by a snake, of course.


Top
   
 Post subject:
PostPosted: Sun Jun 07, 2009 10:44 am 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Code:
~$ aptitude -vvvvvv moo
What is it?  It's an elephant being eaten by a snake, of course.


Well that just settles it. With that kind of sick humor I've just got to use aptitude.


Top
   
 Post subject:
PostPosted: Mon Jun 08, 2009 9:54 am 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
aptitude has been recommended by Debian for years now; personally, I switched to aptitude the day that apt-get tried to remove libc6 and aptitude fixed the problem.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group