Mailinglist Archive: opensuse (1897 mails)

< Previous Next >
Re: [opensuse] installed packages list
  • From: Roger Oberholtzer <roger@xxxxxx>
  • Date: Thu, 08 Jul 2010 15:06:36 +0200
  • Message-id: <1278594396.573.251.camel@xxxxxxxxxxxx>
On Thu, 2010-07-08 at 08:14 -0400, Ken Schneider - openSUSE wrote:
On 07/07/2010 04:52 PM, Hans de Faber pecked at the keyboard and wrote:


On 07/07/10 22:42, Cristian Rodríguez wrote:
El 07/07/10 01:00, Hans de Faber escribió:
Goodmorning,

How can I get a list of al installed packages and versionnumbers ?

Sommething like $ zypper -? -? > packlist.txt

use

#rpmqpack > foo.txt
Doesn't give versionnumber
===========

Tanks to everybody, job is done by rpm -qa.

zypper se -is will.

--
Ken Schneider
SuSe since Version 5.2, June 1998


I find the --queryformat option to RPM to be useful here (learned on
this list):

List all installed RPMs and the version:

rpm -qa --queryformat "%{NAME} %{VERSION}\n"

List all installed RPMs, sorted by newest installs first:

rpm -qa --queryformat "%{INSTALLTIME} %{NAME}\n" |sort -nr| more

--
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >