You are not logged in.

#1 2012-02-01 04:44:52

jimduchek
Member
Registered: 2008-01-06
Posts: 10

Package information -- optional dependencies of?

Hi all.  Some packages have 'optional dependencies'.  Just as an example, yaourt has an optional dependency on rsync.  However, in the package information for rsync, there's no mention that it's an optional dependency of another package.  Is there anyway to get this information?

The reason I ask is this -- occasionally I go through and clean out orphan packages.  I have a script that helps with this, allowing me to view the output of 'pacman -Qi' for each orphan package and choose whether or not to remove it.  However, I have, on occasion, broken ome piece of system functionality by removing a package that is an optional dependency, as that information isn't available. 

I apologize if this is a topic that's been covered before, but the search terms I can think of come up with a LOT of hits.

Thanks in advance,
Jim

Offline

#2 2012-02-01 05:01:32

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

Re: Package information -- optional dependencies of?

Not yet...   handling these better is something being targeted in future pacman releases.

Offline

#3 2012-02-01 12:57:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Package information -- optional dependencies of?

You can use the online database http://www.archlinux.org/packages/extra/i686/gtk2/ but it works only for the packages from the official repos.
Maybe taking notes would be easier.

Offline

#4 2012-02-01 13:12:12

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Package information -- optional dependencies of?

You can always run "pacman -Qi | grep <packagename>" and see if it returns something interesting... (and use maybe -B10 to actually see which package needs it.)

Offline

#5 2012-02-01 13:27:26

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: Package information -- optional dependencies of?

stqn wrote:

You can always run "pacman -Qi | grep <packagename>" and see if it returns something interesting.


Do that and you get a bunch of:

Depends On : <packagename>

Last edited by ethail (2012-02-01 19:59:19)


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#6 2012-02-01 13:34:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Package information -- optional dependencies of?

expac "%n\n%o\n" -Q

shows that on my system few packages have any opt deps.

yaourt-git
aurvote  customizepkg  rsync  pacman-color

or with optdeps descriptions:

[karol@black ~]$ expac "%n\n%O\n" yaourt-git
yaourt-git
aurvote: vote for your favorite AUR packages  customizepkg: automatically modify PKGBUILD during install/upgrade  rsync: retrieve PKGBUILD from official repositories  pacman-color: fully colorized output

Offline

Board footer

Powered by FluxBB