source: trunk/locker/sbin/rpmlist.sh @ 2274

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