You are not logged in.

#1 2010-10-29 07:22:00

miro279
Member
Registered: 2010-10-02
Posts: 156

[SOLVED] pacman and dependencies?

I didnt find a pacman command that makes it show to which package a specific package belongs to. Is there an option like that?
For example, let't say Id like to know why cdrdao is on my system. Can I somehow tell pacman to tell me which other packacge pulled cdrdao in? I gentoo this would be:

equery d cdrdao

thanks in advance!

Last edited by miro279 (2010-10-29 09:10:05)

Offline

#2 2010-10-29 07:29:03

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] pacman and dependencies?

pacman -Qi cdrdao

Offline

#3 2010-10-29 07:42:16

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] pacman and dependencies?

that shows me:

Name           : cdrdao
Version        : 1.2.3-4
URL            : http://cdrdao.sourceforge.net/
Licenses       : GPL  
Groups         : None
Provides       : None
Depends On     : gcc-libs  lame  libmad  libvorbis  libao  
Optional Deps  : None
Required By    : k3b  
Conflicts With : None
Replaces       : None
Installed Size : 1276,00 K
Packager       : Andrea Scarpino <andrea@archlinux.org>
Architecture   : i686
Build Date     : So 11 Apr 2010 03:57:27 CEST
Install Date   : Fr 29 Okt 2010 09:39:48 CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : Records audio/data CD-Rs in disk-at-once (DAO) mode

so now i know that it was pulled by another package- but not by which one. Also, can i somehow do a systemwide dependency-ceck, so that i know for sure all dependencies are there and nothing is missing?

edit: required by k3b, ok thanks, then that helps me!

still second quenstion: Can i somehow do a systemwide dependency-ceck, so that i know for sure all dependencies are there and nothing is missing?

Last edited by miro279 (2010-10-29 07:43:18)

Offline

#4 2010-10-29 07:56:35

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] pacman and dependencies?

Let's say I delete cdrdao:

pacman -Rd cdrdao

for some reason and forget to reinstall. Can I make pacman to tell me that cdrdao is missing on the system?

Offline

#5 2010-10-29 08:53:57

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] pacman and dependencies?

miro279 wrote:

Let's say I delete cdrdao:

pacman -Rd cdrdao

for some reason and forget to reinstall. Can I make pacman to tell me that cdrdao is missing on the system?

If you for whatever reason do an -Rd, its your responsibility to remember that. If any particular app (k3b for instance) fails, you should just be able to -Qi that app to figure out what it depends on.

What exactly are you trying to achieve? I suspect you're trying to go through your package lists and delete stuff you don't need. I'd advise not doing -Rd at all, since those packages are dependencies for a reaosn.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2010-10-29 08:59:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] pacman and dependencies?

llan@mugen ~ 
> pacman -Rd pygtksourceview2

Remove (1): pygtksourceview2-2.10.1-3

Total Removed Size:   0.21 MB

Do you want to remove these packages? [Y/n] 
(1/1) removing pygtksourceview2                    [######################] 100%

allan@mugen ~ 
> testdb 
missing dependency for cherrytree : pygtksourceview2
missing dependency for pychess : pygtksourceview2

Offline

#7 2010-10-29 09:09:15

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] pacman and dependencies?

I just want to understand pacman for now.  Also I was thinking about cleaning up the system, but not by deleting random packages, but removing packages that were installed explicitly by pacman and I don't need them (probably on arch setup). If doing so, Id need a tool that tells me if these packages were also needed as some dependency.
testdb seems to do the job. Thanks a lot!

Offline

#8 2010-10-29 09:30:28

manmachine
Member
From: Athens
Registered: 2010-10-28
Posts: 62
Website

Re: [SOLVED] pacman and dependencies?

For keeping the system clean you could remove packages with:
pacman -Rs (the -s flag removes dependencies as well).

And:
pacman -Qdt
will find and list all orphaned packages that are no longer required as dependencies.

Offline

#9 2010-10-29 11:20:21

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] pacman and dependencies?

Yes, but thats just true for packages that are not installed explicitly.
It would be helpful if there was an easy way to change packages form being explicitly istalled to being installed as a dependency (if they are a dependency). The only way I found doing that is to remove the package (to do no harm with -k option) and reinstall the package that needs it as a dependancy, but thats a pain in the ass..

Last edited by miro279 (2010-10-29 11:24:38)

Offline

#10 2010-10-29 13:26:02

ChoK
Member
From: France
Registered: 2008-10-01
Posts: 346

Re: [SOLVED] pacman and dependencies?

pacman -S --asdeps

I think the packages installed explicitly that you don't need are part of a group (base or xorg probably)

Last edited by ChoK (2010-10-29 13:26:55)


Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry

Offline

#11 2010-10-30 10:20:21

miro279
Member
Registered: 2010-10-02
Posts: 156

Re: [SOLVED] pacman and dependencies?

thats helpful, thanks! no there are only packages left seen with pacman -Qe that I really wanted explicitly. I also removed 2 or 3 packages I didnt need (like mdadm for raid support which seems to be pulled by standard).
Thinks seems cleaner that way to me.

Offline

Board footer

Powered by FluxBB