LinuxQuestions.org
Review your favorite Linux distribution.
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 01-13-2006, 01:34 AM   #1
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Rep: Reputation: 15
Please help me understand aptitude


Hello,

I've recently decided to try switching to Debian from Gentoo, mainly due to tedious compilation time. Anyway, I'm in my third or fourth trial installation, this time with unstable.

This is the first time I tried to install manual packages from the initial setup, which finished correctly, unstsable sources used, aptitude dist-upgrade clean and all. Next I tried to install kde, and indeed aptitude installed it, or so I thought. Xorg wasn't installed as a dependency, which I promptly aptitude installed.

Tried an aptitude upgrade afterwards, and to my astonishment, it tried to uninstall all kde!!! What gives?

The reason I'm using aptitude BTW instead of apt-get is because it's supposed to be superior to apt-get.

Anyway, I want to do the simplest of things:

1. install a minimum system without exim4 et al
2. install xorg and kde
3. do a clean aptxxx upgrade
4. move on with more customization and other new packages

Can you please help me out? This are not obvious, and I believe I've RTFMed enough to no avail. TiA.

/coralsaw
 
Old 01-13-2006, 02:37 AM   #2
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
what i do is first install the etch beta netowrk install cd then do a quick changing of the sources.list to sid then apt-get upgrade && apt-get dist-upgrade now everything is up to date i install xorg, apt-get install x-window-system-core. Then i would add sources for the latest kde but since thats in unstable now no need, just do a apt-get install kde-core for a bare bones kde, then i just add my fav apps amarok, k3b kaffeine etc.
 
Old 01-13-2006, 04:59 AM   #3
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Thx ingvldr, that's almost what I tried to do, except I used aptitude. Would your solution work with aptitude?

I can't believe there's no clear cut process to what I want to do, it seems a very common task. Or not?

/coralsaw
 
Old 01-13-2006, 05:54 AM   #4
manoel
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
apt has super-cow powers.
 
Old 01-13-2006, 06:00 AM   #5
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Quote:
I can't believe there's no clear cut process to what I want to do, it seems a very common task. Or not?
Errr, no, not really Debian does not need lots and lots of instalations ;-)

The truth is that the sequence is as follows:
Install base, change sources, apt-get update, apt-get upgrade, apt-get dist-upgrade, then apt-get install kde x-window-system
 
Old 01-13-2006, 06:04 AM   #6
mercyop
LQ Newbie
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Debian Sarge
Posts: 17

Rep: Reputation: 0
I started using aptitude instead of apt-cache and apt-get after my upgrade from Woody to Sarge. The reason was that Debian recommended using aptitude while doing this upgrade. I think they wrote something about aptitude beeing more thorough in its sanity checks. Never had any problems with apt before though and only main difference I see is that aptitude is slower (maybe because of more checks?).
 
Old 01-13-2006, 06:28 AM   #7
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
apt and aptitude solve dependencies (especially cyclic ones) in different manners. I usually use aptitude - TUI - and I use apt-get in console.
BTW, aptitude is _the_ recmended wayto upgrade from woody to sarge.
 
Old 01-13-2006, 06:54 AM   #8
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pe2338
The truth is that the sequence is as follows:
Install base, change sources, apt-get update, apt-get upgrade, apt-get dist-upgrade, then apt-get install kde x-window-system
Thx. Would your sequence work with aptitude, instead of apt-get?

/coralsaw
 
Old 01-13-2006, 08:11 AM   #9
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
want to do the simplest of things:

1. install a minimum system without exim4 et al
2. install xorg and kde
3. do a clean aptxxx upgrade
4. move on with more customization and other new packages
(1) Download the Sarge netinst .iso, burn it to CD, boot it with "linux26", and install the base system. (Or you can boot the install CD with "expert26", which will ask more questions but it gives you the option to upgrade straight to unstable.)
(2) After installing the Sarge base system, log in and type "nano /etc/apt/sources.list". Edit sources.list, changing "stable" to "unstable". Type "aptitude update", and then "aptitude dist-upgrade".
(3) Type "aptitude". Hit "F10" and configure aptitude's settings to your liking. Hit "?" to get help on using aptitude.
(4) Remove exim4 and install x-window-system and kde (plus maybe some other packages).

Once in aptitude's "TUI" (Terminal User Interface), you can update package list with "u", mark upgradable packages to be upgraded with "U" (in case you have disabled automatic upgrading in aptitude's settings), view planned changes with "g" and execute the planned changes by hitting "g" again.

You can navigate with up and down arrow keys (and PageUp and PageDown keys) and Enter. Hitting "q" will get you back to previous view (or exit aptitude, if there's no previous view). You can mark packages to be installed with "+" and to be removed with "-". Aptitude allows you to view any planned changes before executing them (and you can still make changes to your selections at that point).

Notice that Debian "unstable" has more bugs and broken dependencies than "testing" or "stable". This means that some packages may not be installable until the dependencies have been fixed.
 
Old 01-13-2006, 08:54 AM   #10
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you dead parrot, I'll try your solution.

/coralsaw
 
  


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
apt-get vs. aptitude freddie_leaf Debian 28 01-13-2011 06:56 AM
Aptitude error AndeAnderson Linux - General 3 10-15-2005 03:13 PM
aptitude Metallic Debian 6 04-14-2005 04:47 PM
What are aptitude tests? the_imax General 1 01-11-2005 06:18 AM
Need help to configure aptitude davidas Debian 9 04-21-2004 04:51 AM

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

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