LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 08: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, 09:12 AM   #2
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
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, 09:20 AM   #3
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
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 snowday; 11-02-2012 at 11:15 AM.
 
Old 11-02-2012, 10: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 10:22 AM.
 
Old 11-02-2012, 11:13 AM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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, 11:29 AM   #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, 03:33 AM   #7
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
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



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 06:15 AM
[SOLVED] can not run aptitude nor apt-get to install any package rewesh Debian 7 10-20-2011 05:06 PM
apt-get install synaptic / aptitude install synaptic not working :S LittlePenguin Linux - Newbie 5 01-19-2011 07: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 06:02 AM
apt aptitude commands not working - how to install packages w/ damn small linux? lenou Linux - Newbie 3 01-23-2010 09:00 AM

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

All times are GMT -5. The time now is 03:52 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
Open Source Consulting | Domain Registration