Re: upgrade -1?
"Michael P. Soulier" <msoulier@storm.ca> writes:
> Hey people. What's the accepted way to upgrade everything on
> your system, except for an exclusion list? Looking at apt-get -s
> upgrade, I want to exclude a package or two but still have the
> convenience of upgrade. Is that possible?
Put the packages you don't want to upgrade on hold. The
following script, posted spume time ago by Craig Sanders
<cas@taz.net.au> will do it for you:
---cut here---
#! /bin/bash
# dpkg-hold -- command line tool to flag package(s) as held.
#
# by Craig Sanders, 1998-10-26. This script is hereby placed into the
# public domain.
#
# BUGS: this script has absolutely no error checking. this is not good.
if [ -z "$*" ] ; then
echo "Usage:"
echo " dpkg-hold <package...>"
exit 1
fi
for i in $@ ; do
echo "$i hold"
done | dpkg --set-selections
---cut here---
You can also give the same command manually.
Bob
--
_
|_) _ |_ Robert D. Hilliard <hilliard@debian.org>
|_) (_) |_) 1294 S.W. Seagull Way <bob@bobhilliard.net>
Palm City, FL USA GPG Key ID: 390D6559
PGP Key ID: A8E40EB9
Reply to:
- References:
- upgrade -1?
- From: "Michael P. Soulier" <msoulier@storm.ca>