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

Last change on this file since 2422 was 2274, checked in by achernya, 12 years ago
Set locale to C so sort produces consistent results for rpm-sync
  • Property svn:executable set to *
File size: 271 bytes
RevLine 
[1640]1#!/bin/sh
[1639]2
[2274]3export LC_ALL=C
4
[1639]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.