LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-12-2007, 06:52 AM   #76
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57

Quote:
Originally Posted by JackieBrown
Those were "fun" times.
Fun times are back for unstable users

[2007-04-11] Accepted 2.5-1 in unstable (low) (Clint Adams)
 
Old 04-12-2007, 05:47 PM   #77
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
I'm going to upgrade Sarge to Etch this weekend but I have a question if I may.

The release notes recommend using aptitude for the dist-upgrade:
Quote:
This programme makes safer decisions about package installations than running apt-get directly
But I remember reading elsewhere on LQ that aptitude should NOT be used for this as it may hose the system and that apt-get is best. I would value the opinion of you guys who have already done the upgrade on which tool to use.
 
Old 04-12-2007, 05:56 PM   #78
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

Original Poster
Rep: Reputation: 62
aptitude is the better program and the preferred package manager by Debian, but trying to get people to change something they're used to is like pulling teeth.

I would recommend that before switching from apt-get to aptitude, the first command executed should be # aptitude keep-all ...
Then use aptitude exclusively from that point on.

Also, and I think the release notes recommend this, just use it from the command line. You can use the same command line parameters as apt-get, for the most part.
 
Old 04-13-2007, 01:03 AM   #79
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by rickh
aptitude is the better program and the preferred package manager by Debian, but trying to get people to change something they're used to is like pulling teeth.
I'm a long time Debian user, but, still a Debian n00b ( I use Debian on and off). Why is aptitude better than apt? Just curious.
 
Old 04-13-2007, 01:07 AM   #80
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
More letters in the word "aptitude" than in the word "apt". More is better!
No!
Newer technology, better handle on dependencies.
 
Old 04-13-2007, 01:19 AM   #81
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

Original Poster
Rep: Reputation: 62
The Release Notes touch on some of the issues.

Overall, I think Junior Hacker is right ... newer technology. Aptitude is the normal progression of development, and started from everything known about the strengths and weaknesses of apt-get. I only use it from the command line, and there is virtually no learning curve moving from apt-get to aptitude.

The biggest danger is skipping the all-important first step, introducing aptitude to all the programs you have installed previously. Otherwise under some conditions, it will decide they're all unused, and try to remove them. # aptitude keep-all ... handles that problem nicely.
 
Old 04-13-2007, 03:58 AM   #82
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
I prefer aptitude because when I use it to install something, and it pulls down a load of dependencies as well, if I use it to remove that particular something, it will remove every (otherwise unused) dependency it automatically installed as well. I just wish I could do apt-get's build-dep option with aptitude.
 
Old 04-13-2007, 07:37 AM   #83
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
Originally posted by rickh:
Quote:
The biggest danger is skipping the all-important first step, introducing aptitude to all the programs you have installed previously. Otherwise under some conditions, it will decide they're all unused, and try to remove them. # aptitude keep-all ... handles that problem nicely.
I can see the sense in that, but will aptitude keep-all prevent the aptitude dist-upgrade from removing obsolete packages? In particular, you wouldn't want to keep xfree86.
 
Old 04-13-2007, 09:46 AM   #84
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Rep: Reputation: 31
Quote:
Originally Posted by lurko
I prefer aptitude because when I use it to install something, and it pulls down a load of dependencies as well, if I use it to remove that particular something, it will remove every (otherwise unused) dependency it automatically installed as well. I just wish I could do apt-get's build-dep option with aptitude.
I've used aptitude a few times, but never realized it could remove unused dependancies. Thats one thing I've always wished apt-get and dselect would do. I think I am going to make the permanent switch to aptitude soon.

One question: What is this "build-dep" option you speak of?

Last edited by BillyGalbreath; 04-13-2007 at 09:48 AM.
 
Old 04-13-2007, 09:58 AM   #85
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,345

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Thumbs up

Quote:
Originally Posted by rickh
The Release Notes touch on some of the issues.

Overall, I think Junior Hacker is right ... newer technology. Aptitude is the normal progression of development, and started from everything known about the strengths and weaknesses of apt-get. I only use it from the command line, and there is virtually no learning curve moving from apt-get to aptitude.

The biggest danger is skipping the all-important first step, introducing aptitude to all the programs you have installed previously. Otherwise under some conditions, it will decide they're all unused, and try to remove them. # aptitude keep-all ... handles that problem nicely.
Thanks for the explanation, tip, and link. I appreciate the reply, rickh.
I'm doing a clean install of Etch tonight after work. Fun!
 
Old 04-13-2007, 10:07 AM   #86
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

Original Poster
Rep: Reputation: 62
A final tip about aptitude. The only portion of the User Manual I ever look at is The Command Line Reference.
 
Old 04-13-2007, 01:20 PM   #87
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Billy,

the tool apt-get build-dep is truly badass. It will do just what it says, build all of the dependencies for a program. For example, if I want to compile my own apache with non-standard things, I could do apt-get build-dep apache, and it will build all the dependencies but not install apache, so I have no obstructions to building apache as I want.

For home use it isn't such a big deal, but many times on servers it has saved me much time by build-dep'ing dependencies of things I want/need custom builds on.

Peace,
JimBass
 
Old 04-13-2007, 01:22 PM   #88
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
One question: What is this "build-dep" option you speak of?
This is very cool, if for some reason you want to recompile a debian package (I've never had a good reason to, besides curiosity). build-dep will automatically install all packages necessary to compile the package in question. Saves a lot of time that would be spent searching for the correct development packages (and compilers if necessary).
 
Old 04-13-2007, 01:37 PM   #89
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

Original Poster
Rep: Reputation: 62
Not an official part of aptitude, but widely discussed:

http://p12n.org/hacks/aptitude-build-dep

Quote:
# This is like 'apt-get build-dep foo', except that it takes advantage
# of aptitude's auto-install tracking. It installs an equivs dummy
# package 'build-dep-foo' with aptitude, so that later if you remove
# build-dep-foo, your build dependencies will go away as well.
#
# Requires 'equivs' and 'aptitude'.

Last edited by rickh; 04-13-2007 at 01:54 PM.
 
Old 04-13-2007, 04:19 PM   #90
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Rep: Reputation: 31
Quote:
Originally Posted by JimBass
Billy,

the tool apt-get build-dep is truly badass. It will do just what it says, build all of the dependencies for a program. For example, if I want to compile my own apache with non-standard things, I could do apt-get build-dep apache, and it will build all the dependencies but not install apache, so I have no obstructions to building apache as I want.

For home use it isn't such a big deal, but many times on servers it has saved me much time by build-dep'ing dependencies of things I want/need custom builds on.

Peace,
JimBass
Quote:
Originally Posted by Daws
This is very cool, if for some reason you want to recompile a debian package (I've never had a good reason to, besides curiosity). build-dep will automatically install all packages necessary to compile the package in question. Saves a lot of time that would be spent searching for the correct development packages (and compilers if necessary).
Very cool indeed! There have been a few times this would have come in handy! lol
 
  


Reply

Tags
gnome, sid



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
LXer: Linux Distribution Debian 4.0 "Etch" suffers delays LXer Syndicated Linux News 0 11-18-2006 02:21 AM
Dbeian etch "apt-get install alien" failes , bug? android6011 Debian 5 08-04-2006 02:38 PM
How to deal with "We don't support Linux"? thisperson Linux - General 6 05-04-2006 02:26 AM
Debian "etch" install problems - no NIC found SharkeyNor Debian 2 08-14-2005 04:12 AM
What's the deal with the urpmi "contrib" sources? adamis Mandriva 6 02-01-2004 12:36 AM

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

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
Open Source Consulting | Domain Registration