List installed packages with the repo they came from?
With rpm it is possible to list installed packages with additional info
rpm -qa --queryformat "%-35{NAME} %-35{DISTRIBUTION} %{VERSION}-%{RELEASE}\n" | sort -k 1,2 -t " " -i
which will produce something like
xorg-x11-drv-ur98 (none) 1.1.0-1.1
xorg-x11-drv-vesa CentOS-5 1.3.0-8.3.el5
xorg-x11-drv-vga (none) 4.1.0-2.1
xorg-x11-drv-via (none) 0.2.1-9
On Ubnutu server would I like to list all installed packages and show from which repository in came from.
Can that be done?
Take a look at “man dpkg-query”. The following should get you started:
skx@precious:~$ dpkg-query --showformat="\${Package}\t\${Version}\t\${Origin}\n" --show \*
Check more discussion of this question.
Related posts:
- In Ubuntu Linux, how do I list packages installed from the “universe” repository?
- Generating a list of installed packages in Ubuntu
- Compute a list of difference between packages installed on two hosts
- yum list installed including version of all installed packages CentOS 5.4
- List of newly-installed apt packages
Leave a comment
Recent Posts
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





