LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-12-2007, 12:17 AM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Rep: Reputation: 30
Questions about Aptitude


Could someone outline for me the procedure for installing both apt-get and aptitude? Seems one has to be installed before the other. Is the apt in apt-get and abbreviation of aptitude? Don't understand why these two package managers have such similar names. Very confusing. Once they're installed, what is the command line to install and remove packages? Apparently, aptitude is better because it removes any dependencies if they're not be used by other programs. Thanks.
 
Old 07-12-2007, 01:04 AM   #2
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Rep: Reputation: 15
aptitude

Hi Jacatone, first what you must know is that Aptitude is just the graphical client for apt-get. Aptitude has a shmick graphical interface, but underneath all its doing is using apt-get on the command line! ;-)
Second of all, aptitude, as far as I know can only be used with Debian and Ubuntu, and they both come pre-installed with aptitude, so there should be no need to install it.

So if you are using Debian or Ubuntu, you should do this to install a package using aptitude, and yes it will also install all dependencies.

su
<enter root password and hit enter>
apt-get install <name of package>

To search for a package you must do this -->

su
<enter root password and hit enter>
apt-cache search <search string>

NOTE: in ubuntu, instead of using su, you can just use sudo and then the command for example...

sudo apt-get install <name of package>

voila, hope that helps you...

Luke

Last edited by ljs662_removed; 07-12-2007 at 01:11 AM.
 
Old 07-12-2007, 02:24 AM   #3
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Original Poster
Rep: Reputation: 30
I'm using Mepis 6.5.02 which uses KDE 3.5 and debian. I had to first install apt-get, then use it to install aptitude. Apparently, they are two distinct konsole based programs. Aptitude will remove dependencies with an uninstall, while apt-get and Synaptic won't. I seem to get different answers everytime I ask the question.
 
Old 07-12-2007, 02:39 AM   #4
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Rep: Reputation: 15
Wow I wasnt aware of that I thought they were the same thing and I've been using apt-get for years!
You learn something new every day. =)
apt-get actually does remove un-needed dependencies though you just have to go
Code:
sudo apt-get autoremove
:-)
Ill keep an eye on this thread ill be interested to see what others have to say.
I did a bit of digging on google and they do seem to be two seperate programs.
Luke
 
Old 07-12-2007, 08:07 AM   #5
jimmy512
Member
 
Registered: Oct 2006
Location: London
Distribution: Arch
Posts: 183

Rep: Reputation: 31
Quote:
su
<enter root password and hit enter>
apt-cache search <search string>
I didnt think you had to be root to search for packages. On my standard debian install it lets you search but not install as a normal user.
 
Old 07-12-2007, 08:53 AM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
The Apt/Aptitude debate is one of the most vigorous, and sometimes caustic, discussions in the Debian world.

http://forums.debian.net/viewtopic.php?t=16139

You want my opinion? Aptitude is the hands-down winner, but you still need various components of Apt.

I don't know how it works in the derivatives, or in other distros that have ported Apt, but in Debian, Apt/Aptitude is far more than a means of getting packages. Second to the kernel, it's the most critical element of the OS. There are dozens of Apt related commands apart from "apt-get".
 
  


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
Questions about Aptitude jacatone Linux - Newbie 4 07-06-2007 08:55 AM
help for aptitude abhijeetnayak Ubuntu 1 06-12-2006 01:08 PM
help for aptitude abhijeetnayak Ubuntu 1 06-12-2006 12:03 AM
aptitude Metallic Debian 6 04-14-2005 05:47 PM
general aptitude BorisMcHack Debian 1 01-04-2005 04:03 PM


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