source:
trunk/locker/sbin/rpmlist.sh
@
2823
Last change on this file since 2823 was 2823, checked in by andersk, 8 years ago | |
---|---|
|
|
File size: 287 bytes |
Rev | Line | |
---|---|---|
[1640] | 1 | #!/bin/sh |
[2823] | 2 | set -eu |
[1639] | 3 | |
[2274] | 4 | export LC_ALL=C |
5 | ||
[1639] | 6 | copyTo='/mit/scripts/cron_scripts/rpm-sync/' |
[2823] | 7 | packages=$(mktemp --tmpdir rpmlist.XXXXXX) |
8 | rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > "$packages" | |
[1639] | 9 | |
[2823] | 10 | host=$(hostname) |
[1639] | 11 | extension='.rpmlist' |
12 | file="$copyTo/$host$extension" | |
[2823] | 13 | mv "$packages" "$file" |
Note: See TracBrowser
for help on using the repository browser.