LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-24-2011, 03:56 AM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
What's the point of apt-get, these days.


Ok guys, i'm still fairly new to Debian, and Gnu/Linux for that matter so go easy on me if i appear ignorant or stupid.
To my understanding, aptitude is the preferred and recommended tool for package management. Apt-get seems to have become obsolete, so why is apt-get stil in use?
 
Old 10-24-2011, 04:08 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
From what I understand "apt-get" is not as thorough in handling dependencies but in every other way it is very similar to aptitude.
 
Old 10-24-2011, 05:31 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
aptitude is better at dependency resolution, often to the point that it will refuse to do anything until a broken dependency has been satisfied. apt-get is still not as thorough, despite claims that is has caught up. Both have some powerful options most of which the normal user never uses (see man pages). But aptitude gives the user more control IMO and also has the ncurses UI, if you run it without arguments.

apt-get is still the recommended tool for distribution upgrades however and I can confirm that it does do a better job as it just gets on with it and upgrades everything without making a fuss.

The problem with mixing aptitude and apt-get is that they can get out of sync. If you install and remove a lot of packages with apt-get, it's often the case that "aptitude -f install" will try to reinstall them all again because apt-get failed to clean up properly - they also often contradict each other when installing recommends/suggests. So in general, but this is just an opinion: aptitude for every day usage, apt-get for dist-upgrade or other rare occasions.

Last edited by cynwulf; 10-24-2011 at 05:34 AM.
 
Old 10-24-2011, 06:15 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
In fact, in new versions of Ubuntu there is no aptitude by default, they use apt-get as standard tool for the command line. I personally always have used apt-get/apt-cache/apt-file in my Debian times, just because I was used to them.
 
Old 10-24-2011, 06:16 AM   #5
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
I know of no advantages of apt-get except that's it's installed by default on Ubuntu and aptitude isn't. So when giving advice to people you have to consider that they may not have installed it.
 
Old 10-24-2011, 08:00 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The OP is using Debian so aptitude will come in a standard install.
 
Old 10-24-2011, 09:25 AM   #7
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Good to know ...
 
Old 10-24-2011, 06:28 PM   #8
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
so why is apt-get better at distro upgrades? what advantage does it offer over aptitude. why dont the developers get together and combine there efferts into just one of them.
 
Old 10-24-2011, 07:20 PM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Aptitude - Debian Wiki - http://wiki.debian.org/Aptitude?acti...et_to_aptitude


The only thing I use aptitude for is when I can't find something when I search for it using apt-get.

Use which ever works for you.
 
Old 10-25-2011, 12:46 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

IIRC some time ago (few years?) Debian started recommending aptitude over apt-get, at that time I made the switch. However, as of the squeeze release apt-get was the recommended method of performing the upgrade. See:

http://www.debian.org/releases/squee...radingpackages

Apparently, apt-get has somewhat caught up with aptitude in terms of dependency resolution and feature set. I'm not sure what is currently recommended in terms of everyday package installation. I'm still using aptitude, but since I almost never use it in the interactive mode, I'd be more than happy to switch back to apt-get and apt-cache.

Cheers,

Evo2.
 
Old 10-25-2011, 12:41 PM   #11
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Basically it boils down to a question of choice.

There are a number of tools for package management that all invoke dpkg in doing the job. Which do you prefer? Use it.

You could just use dpkg or, deselect for that matter, to do the job so what is the point of having any of these tools? Folks find them preferable.

I like apt-get. I also use aptitude for some jobs. I like synaptic for some things.
 
Old 10-25-2011, 07:31 PM   #12
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
widget has about summed it up the best. But like craigevil I like to use ' aptitude search packagename ' and ' aptitude versions packagename '. If you are using Debian Stable then either one will work equally well the difference is in Testing and Unstable and there you need to know how to use both plus dpkg.
 
Old 10-26-2011, 03:13 AM   #13
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
The aptosid page has some interesting things to say about apt-get for installing and dist-upgrades-

Quote:
The Reasons NOT to use anything else but apt-get for a dist-upgrade

Package managers like adept, aptitude, synaptic and kpackage are not always able to account for the huge amount of changes which happen in Sid (depedency changes, name changes, maintainer script changes, ...).

This is not the fault of the developers of those tools though, they write a excellent tools and fabulous for the debian stable branch, they are simply just not suitable for the very special needs of Debian Sid.

Use whatever you like to search for packages, but stick with apt-get for actually installing/removing/dist-upgrading.

Package managers like adept, aptitude, synaptic and kpackage are at the least, non-deterministic (for complex package selection), mix that with a quickly moving target like sid and even worse an external repository of questionable quality (we don't use or recommend those, but they're a reality on your user systems) and you will be courting disaster.

The other item to note is that all of these types of GUI package managers need to run in in X, and in doing a dist-upgrade in X, (or even an 'upgrade' which is not recommended), you will end up damaging up your system beyond repair, maybe not today or tomorrow, however in time you will.

apt-get on the other hand strictly does what it is asked to do, if there is any breakage you can pinpoint and debug/ fix the cause, if apt-get wants to remove half of the system (due to library transitions) it's the admin's call (that means you) to have at least a serious look.

This is the reason why debian builds use apt-get, not the other package manager tools.
http://manual.aptosid.com/en/sys-admin-apt-en.htm#du-st
 
Old 10-26-2011, 03:29 AM   #14
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Ok here's a negative against apt-get, even though it is my preference to. When updating/upgrading my Sid/Experimental system apt-get will read the change logs and some it will show in the terminal and there is no-way I can then get back to upgrading. I then have to close the terminal and resort to (please don't hit me Widget ) Update Manager or Synaptic so I can upgrade. Has anyone else had this?
 
Old 10-26-2011, 03:44 AM   #15
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
The changelogs may be displayed using something like "less" (I can't say for sure as I don't use apt-listchanges), try hitting "q" and see if it resumes from there.
 
1 members found this post helpful.
  


Reply



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
how to implement pppoe (point to point protocol over ethernet) dhavalshah9898 Linux - Newbie 2 04-01-2010 11:21 PM
Gnome Desktop makes 10 point font look like 64 point - how do I fix it? TonyC Linux - Desktop 5 03-03-2009 12:22 AM
LXer: Set up a SSH-based point to point connection LXer Syndicated Linux News 0 11-30-2008 09:50 PM
What is the point of apt-move fsck? Cyberman Linux - Software 1 09-17-2008 11:33 PM
telnet not work in Point to Point connected FC6 boxes techteacher Linux - Networking 4 05-06-2007 09:50 AM

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

All times are GMT -5. The time now is 02:37 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