LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2012, 09:40 AM   #1
arijspieter
Member
 
Registered: Oct 2012
Location: /home
Distribution: Debian
Posts: 32

Rep: Reputation: 1
aptitude install IS NOT THE SAME AS apt-get install


i'm using debian wheezy and i've read a lot online about apt-get and aptitude.
after reading those things i decided that i didn't need the extra functionality aptitude provides and that i would stick to apt-get.

however, after doing a small test, i'm not really sure about my decision
for the test i first tried "aptitude install wicd" and cancelled
then i did the same but with apt-get "apt-get install wicd"

i thought both instructions would do the exact same but that isn't true:
apt-get wanted to install wicd and use 52.7MB
aptitude wanted to install wicd and use 52.3MB (which is less)
so i looked further and saw that apt-get would only install wicd but that aptitude would install wicd AND remove libreadline5

not that my HDD isn't big enough but why does aptitude want to remove libreadline5 when installing wicd and apt-get doesn't?
and how is "aptitude install" different from "apt-get install"??

thanks in advance,
Pieter
 
Old 11-02-2012, 10:12 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
May it be possible that libreadline5 is remnant from a former installation that is no longer needed? IIRC, aptitude automatically removes not longer needed dependencies, while you need the autoremove command to do the same with apt-get.
Since autoremove can be dangerous (do a web search for Debian meta-package problem) I would consider using apt-get to be more save.
 
Old 11-02-2012, 10:20 AM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,257

Rep: Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202Reputation: 1202
apt-get requires you to explicitly autoremove if you so desire. I use apt-get myself (and never autoremove, since I have a large hard drive).

Last edited by snowpine; 11-02-2012 at 12:15 PM.
 
Old 11-02-2012, 11:04 AM   #4
Rodebian
Member
 
Registered: Apr 2012
Posts: 37

Rep: Reputation: Disabled
My experience with aptitude has been great. I have had no issues at all with it. It asks if it wants me to allow it to remove a package. I just make sure to read all that it is doing. Upgrades, installs, removes.

aptitude keep <individual package, temporary. Use hold for something permenant>
aptitude keep-all
aptitude hold <package>
aptitude unhold <package>

BTW: apt-get is more safe as mentioned already. Good to use until a person gets use to things better.

Last edited by Rodebian; 11-02-2012 at 11:22 AM.
 
Old 11-02-2012, 12:13 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
autoremove is pretty much automatic with aptitude while apt-get has to be told.

Aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/
Basics of the Debian package management system - http://www.debian.org/doc/FAQ/ch-pkg_basics.html
Debian package management : http://www.debian.org/doc/manuals/de...e/ch02.en.html
Debian package management tools http://www.debian.org/doc/manuals/de...gtools.en.html

Pick one and stick with it, personally I have always used apt-get.
 
Old 11-02-2012, 12:29 PM   #6
Rodebian
Member
 
Registered: Apr 2012
Posts: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by craigevil View Post
autoremove is pretty much automatic with aptitude while apt-get has to be told.

Aptitude user's manual - http://algebraicthunk.net/~dburrows/...titude/doc/en/
Basics of the Debian package management system - http://www.debian.org/doc/FAQ/ch-pkg_basics.html
Debian package management : http://www.debian.org/doc/manuals/de...e/ch02.en.html
Debian package management tools http://www.debian.org/doc/manuals/de...gtools.en.html

Pick one and stick with it, personally I have always used apt-get.
I seem to be the oddball here :-) . I love aptitude. While autoremove is very much automatic as you said it still shows you what it is going to do before it does it.

Quote:
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded
I like this because many times it is telling me what packages I don't really need anymore. It is not always correct which makes the above commands I mentioned in my previous reply more important.

However, as mentioned, yes pick one only and stay with it. if apt-get works for you or anyone else, then that is all that matters. there is no right or wrong way of doing it. The great thing about linux is that there are so many choices and we have the freedom to choose what we want.

I wonder though. I can't be the only one who uses aptitude, am I? lol
 
Old 11-03-2012, 04:33 AM   #7
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,255

Rep: Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420Reputation: 1420
I use aptitude all the time, but I never do aptitude install foo, I always open it as a curses program. That way, I can see the effects of every operation I do, and undo them before actually downloading/installing anything.
 
  


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
[SOLVED] aptitude install xxxxxx vs. apt-get install Zssfssz Debian 4 03-22-2012 07:15 AM
[SOLVED] can not run aptitude nor apt-get to install any package rewesh Debian 7 10-20-2011 06:06 PM
apt-get install synaptic / aptitude install synaptic not working :S LittlePenguin Linux - Newbie 5 01-19-2011 08:25 AM
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 07:02 AM
apt aptitude commands not working - how to install packages w/ damn small linux? lenou Linux - Newbie 3 01-23-2010 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration