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 05-24-2011, 09:16 AM   #1
michalng
Member
 
Registered: Dec 2005
Distribution: Debian KDE / Fluxbox
Posts: 222

Rep: Reputation: 46
Need help with " aptitude"


Assuming if I do a aptitude search xorg and the output is as below
Quote:
c xserver-xorg-input-mouse
v xserver-xorg-input-penmount
i A xserver-xorg-input-synaptics
p xserver-xorg-input-synaptics-dev
what is the meaning of c , v , p, i(installed), A etc.

have googled quite a bit but didn't have much luck.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2011, 09:33 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
A simple man aptitude gave me that:
Quote:
Each search result is listed on a separate line. The first
character of each line indicates the current state of the package:
the most common states are p, meaning that no trace of the package
exists on the system, c, meaning that the package was deleted but
its configuration files remain on the system, i, meaning that the
package is installed, and v, meaning that the package is virtual.
The second character indicates the stored action (if any; otherwise
a blank space is displayed) to be performed on the package, with
the most common actions being i, meaning that the package will be
installed, d, meaning that the package will be deleted, and p,
meaning that the package and its configuration files will be
removed. If the third character is A, the package was automatically
installed.
 
2 members found this post helpful.
Old 05-24-2011, 11:52 AM   #3
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
Lightbulb

It is explained in aptitude user's manual, which may be available on your system at /usr/share/doc/aptitude/README.

Those flags are the current state of the packages.
  • c = the package was removed, but its configuration files are still present.
  • v = the package is virtual.
  • iA = the package is installed and all its dependencies are satisfied. (I'm pretty sure that A means automatic, or to satisfy a dependency.)
  • p = the package and all its configuration files were removed, or the package was never installed.

The author maintains aptitude user's manual online too:
http://algebraicthunk.net/~dburrows/...h02s02s02.html

HTH
 
Old 05-24-2011, 12:47 PM   #4
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
Quote:
Originally Posted by Telengard View Post
iA = the package is installed and all its dependencies are satisfied. (I'm pretty sure that A means automatic, or to satisfy a dependency.)
As you can see in the man page (I posted the relevant part in the post above yours), A does not mean that the dependencies of the package are satisfied, but that this package was installed automatically to satisfy the dependencies of a different package.
 
Old 05-24-2011, 01:35 PM   #5
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by TobiSGD View Post
As you can see in the man page (I posted the relevant part in the post above yours), A does not mean that the dependencies of the package are satisfied, but that this package was installed automatically to satisfy the dependencies of a different package.
Yeah. That's what I meant, but thanks for saying it more clearly

BTW, man aptitude does not give you aptitude user's manual. It does mention the location of aptitude user's manual in the filesystem (at least it does on my system) in the SEE ALSO section.

If aptitude user's manual is not installed on your system, then you should be able to get it from the repositories. For Ubuntu the package name is aptitude-doc. For Debian I don't know what the package name is, nor do I know whether it is installed by default.

HTH

Last edited by Telengard; 05-24-2011 at 01:44 PM. Reason: write more clearly
 
Old 05-24-2011, 02:31 PM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
For Debian I don't know what the package name is
For Debian it is as follows:

Code:
ade@Pc1:~$ apt-cache search aptitude-doc
aptitude-doc-cs - Czech manual for aptitude, a terminal-based package manager
aptitude-doc-en - English manual for aptitude, a terminal-based package manager
aptitude-doc-es - Spanish manual for aptitude, a terminal-based package manager
aptitude-doc-fi - Finnish manual for aptitude, a terminal-based package manager
aptitude-doc-fr - French manual for aptitude, a terminal-based package manager
aptitude-doc-ja - Japanese manual for aptitude, a terminal-based package manager
Same as Ubuntu?.

Last edited by the trooper; 05-24-2011 at 02:34 PM.
 
Old 05-24-2011, 04:30 PM   #7
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by the trooper View Post
Same as Ubuntu?.
Sort of, I guess. On Ubuntu aptitude-doc is a virtual package which points to the language specific packages.

Code:
~$ aptitude search aptitude-doc
v   aptitude-doc                    -
p   aptitude-doc-cs                 - Czech manual for aptitude, a terminal-base
i   aptitude-doc-en                 - English manual for aptitude, a terminal-ba
p   aptitude-doc-fi                 - Finnish manual for aptitude, a terminal-ba
p   aptitude-doc-fr                 - French manual for aptitude, a terminal-bas
p   aptitude-doc-ja                 - Japanese manual for aptitude, a terminal-b
~$ aptitude show aptitude-doc
No current or candidate version found for aptitude-doc
Package: aptitude-doc
State: not a real package
Provided by: aptitude-doc-cs, aptitude-doc-en, aptitude-doc-fi, aptitude-doc-fr,
             aptitude-doc-ja
 
Old 05-24-2011, 06:59 PM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,889
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
The "state" flag is one of the following:

v - virtual
B - broken
u - "unpacked"
C - half-configured
H - half-installed
c - removed, but config-files still present (ie, not purged)
i - installed
E - internal error (should not happen)

The "action" flag is one of the following:

h - hold
p - purge
d - delete (remove)
B - broken
i - install
r - reinstall
u - upgrade
F - the available upgrade has been forbidden via "F"

If present, the "automatic" flag is "A", indicating that the package
was automatically installed and will be removed when nothing depends
on it.


From file:///usr/share/aptitude/help.txt

Which is different from man aptitude, the aptitude manual is also online at:
http://algebraicthunk.net/~dburrows/...titude/doc/en/
and if the appropriate aptitude-doc package is installed at:
file:///usr/share/doc/aptitude/html/en/index.html
 
2 members found this post helpful.
Old 05-24-2011, 07:43 PM   #9
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by craigevil View Post
file:///usr/share/doc/aptitude/html/en/index.html
Which is the HTML version of the plain text file /usr/share/doc/aptitude/README. I found that on the Debian website. Thanks for finding it on a real Debian system.
 
Old 05-24-2011, 10:18 PM   #10
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,889
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Take a look at: http://www.linuxquestions.org/questi...nu-linux-3073/

for more helpful info
 
  


Reply

Tags
aptitude, package management



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/aptitude package management "auto" flag cjmueller Debian 2 10-16-2011 10:52 PM
Debian - Are dpkg, apt-get, aptitude... safely "mixable"? armandino Linux - General 5 02-07-2011 11:52 AM
What application is more "low level" - apt or aptitude? Mr. Alex Linux - Newbie 30 08-09-2010 03:34 AM
locating packages held with "aptitude hold <packagename>" farslayer Debian 3 12-01-2008 09:56 AM
Aptitude giving error after "apt-get update" ciden Linux - Software 6 03-22-2008 03:53 AM

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

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