[opensuse] command to check all packages
Is there a command that I can use to check all installed packages on my system to see if any are installed from a particular repository? I just got KDE5 back after messing with extras, applications, framework5, qt5, and wolfi's repository. I have been doing so much back and forth with zypper in and zypper dup from the different repos that I really don't know what on my system is installed from what. But my system is working now, and so I want to just check everything and see what repositories I have that are really not being used and then delete them. Thanks :) -- George Box #1: 42.1 | KDE Plasma 5 | AMD Phenom IIX4 | 64 | 32GB Box #2: 13.1 | KDE 4.12 | AMD Athlon X3 | 64 | 4GB Laptop #1: 13.1 | KDE 4.12 | Core i7-2620M | 64 | 8GB Laptop #2: 42.1 | KDE Plasma 5 | Core i7-4710HQ | 64 | 16GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Mittwoch, 20. Januar 2016, 14:49:56 schrieb George Olson:
Is there a command that I can use to check all installed packages on my system to see if any are installed from a particular repository? I just got KDE5 back after messing with extras, applications, framework5, qt5, and wolfi's repository. I have been doing so much back and forth with zypper in and zypper dup from the different repos that I really don't know what on my system is installed from what. But my system is working now, and so I want to just check everything and see what repositories I have that are really not being used and then delete them.
Thanks :) I would use "yast2 sw_single" for that. There choose View->repositories. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 20 januari 2016 08:46:53 schreef jdd:
Le 20/01/2016 08:44, Markus Koßmann a écrit :
I would use "yast2 sw_single" for that. There choose View->repositories.
or use the zypper option --from [repo]
jdd
or use "zypper se -i -r X '*'", where X is 1 up to the total number of repositories you have. This lists all the installed packages from the Xth repository. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-01-20 08:44, Markus Koßmann wrote:
I would use "yast2 sw_single" for that. There choose View->repositories.
That view does not really display what is installed from each repository, but what is available to install from each. If you tap on the version tab you can see where that single package was really installed from. Not a table view. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 2016-01-20 07:49, George Olson (SUSE list) wrote:
Is there a command that I can use to check all installed packages on my system to see if any are installed from a particular repository?
I sometimes use this: rpm -q -a --queryformat "%{INSTALLTIME};%{INSTALLTIME:day}; \ %{BUILDTIME:day}; %{NAME};%{VERSION}-%-7{RELEASE};%{arch}; \ %{VENDOR};%{PACKAGER};%{DISTRIBUTION};%{DISTTAG}\n" \ | sort | cut --fields="2-" --delimiter=\; \ | tee rpmlist.csv | less -S or rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \ %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \ %25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}\n" \ | sort | cut --fields="2-" | tee rpmlist | less -S You get a list sorted by install date of all packages. One of the columns is the vendor, another the distributor. There is no field stored in the database corresponding to repository, so it can not be printed. But they can be identified from the available info. You can adjust the queries to sort on other fields. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Thanks, everyone for the responses! I will try some of those and let you know if there is a problem. -- George Box #1: 42.1 | KDE Plasma 5 | AMD Phenom IIX4 | 64 | 32GB Box #2: 13.1 | KDE 4.12 | AMD Athlon X3 | 64 | 4GB Laptop #1: 13.1 | KDE 4.12 | Core i7-2620M | 64 | 8GB Laptop #2: 42.1 | KDE Plasma 5 | Core i7-4710HQ | 64 | 16GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Carlos E. R.
-
Freek de Kruijf
-
George Olson (SUSE list)
-
jdd
-
Markus Koßmann