View Full Version : [all variants] Equivalent of Synaptic "Origin" feature in apt/dpkg?
Ubuntooid
July 11th, 2009, 08:03 AM
In Synaptic there is an "Origin" button among others in left bottom corner which allows to view packages grouped by sources from which they were installed.
Is there a possibility of doing something similar using apt-cache, apt-get or dkpg ?
renbla
July 11th, 2009, 08:23 AM
It seems like there isn't. But why do you need to know it??
Ubuntooid
July 11th, 2009, 08:41 AM
Why? Synaptic takes a while to start on my not-so-new machine, command line tools are far more quicker. Also, I may need to write some bash script that uses this feature in the future.
oldos2er
July 11th, 2009, 05:48 PM
I think 'origin' can be found with dpkg-query. Not sure of the syntax though, but you can look here: http://manpages.ubuntu.com/manpages/karmic/man1/dpkg-query.1.html .
Ubuntooid
July 13th, 2009, 06:07 AM
Command
dpkg-query -W -f '${Package}\t${Origin}'
shows the same as
dpkg-query -W -f '${Package}',
that is it doesn't show anything for Origin.
I've found some Python script at http://goonmill.org/static/dpkg-origins that does what I wanted.
Also at http://lists.debian.org/debian-user-french/2005/08/msg01157.html someone has written interesting scripts, but comments are in French.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.