source: branches/fc13-dev/locker/sbin/rpmlist.sh @ 1673

Last change on this file since 1673 was 1673, checked in by ezyang, 12 years ago
Merge in changes from trunk.
  • Property svn:executable set to *
File size: 254 bytes
Line 
1#!/bin/sh
2
3copyTo='/mit/scripts/cron_scripts/rpm-sync/'
4packages=`mktemp --tmpdir rpmlist.XXXXXX`
5rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > $packages
6
7host=`hostname`
8extension='.rpmlist'
9file="$copyTo/$host$extension"
10mv $packages $file
Note: See TracBrowser for help on using the repository browser.