Michael Hamilton wrote:
Rpm can report any tag. What above something similar to $ rpm -q -a --queryformat '%{VENDOR} | %{NAME} | %{VERSION}\n'
To see all tags:
$ rpm --querytags
The problem I see is that hardware/driver specific packages may need to be filtered out. I also use such a command to export or backup my RPM package list. This is my script:
So what would be the best way to keep the software on laptop and desktop machine in sync? The problem is, that it is difficult or impossible to restore a package
#! /bin/sh BACKUP_DIR=/var/adm/backup/$(hostname) HEADER="DISTRIBUTION\tVENDOR\tGROUP\tNAME\tVERSION" QUERYFORMAT="%{DISTRIBUTION}\t%{VENDOR}\t%{GROUP}\t%{NAME}\t%{VERSION}\n" mkdir -pv "$BACKUP_DIR" echo -e "$HEADER" > "$BACKUP_DIR"/rpm-qa.txt rpm -qa --queryformat "$QUERYFORMAT" | sort -t" " -k1,1 -k2,2 -k3,3 -k4,4 -k5,5V >> "$BACKUP_DIR"/rpm-qa.txt Markus Egg wrote: list with an exact package status from a saved package list. The idea for restoring is to install packages from each repository separately. If you for instance want to install "subversion" from repository "devel:tools:scm:svn" with zypper install --from devel:tools:scm:svn subversion then also the dependencies of subversion are installed from "devel:tools:scm:svn". But this may not result in exactly the same package state as in the saved list. Greetings, Björn