Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (22 sloc) 0.741 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/bin/sh
set -e
. rpg-sh-setup

ARGV="$@"
USAGE '${PROGNAME} [-u] [<package>...]
Upgrade packages to the latest available version. With no <package>, upgrade
all outdated packages.

Options
-u Sync the remote package index to be sure the latest version
is available.'

# Update the package index. Force the update right now with the `-u`
# arg; otherwise, maybe update it based on the configured stale time.
if test "$1" = '-u'
then rpg-sync
      shift
else rpg-sync -s
fi

# Have `rpg-list` generate a list of all installed package with parseable
# output. Grab only outdated packages and pass them all to `rpg-install`.
rpg-list -p "$@" |
awk '/^o / { print $2, $4 }' |
xargs rpg-install
Something went wrong with that request. Please try again.