Re: potato -> woody upgrade not smooth...
> 1) So "apt search" will do the equivalent of "apt-cache search".
>
> 2) "apt install" will do the equivalent of "apt-get install"
>
> 3) "apt upgrade" will do the equivalent of "apt-get upgrade"
>
> 4) "apt reconfig" will do the equivalent of "dpkg-reconfigure"
>
> 5) "apt help" will tell the user all of things they can do. (Imagine!
I use the following script. It's primitive and doesn't do any
sanity checking, but I find it really useful. If someone wants
to package it (I'm not a developer), that'd be fine with me.
Dan
#!/bin/sh
# apt:
#
# A very primitive tool that unifies apt-get, apt-cache,
# dpkg --set-selections, and dpkg-reconfigure.
# Additions and refinements welcome. jdc@uwo.ca
# Released under the GPL.
dpkghold()
{
TODO=$1; shift
for i in $@; do echo "$i $TODO"; done | dpkg --set-selections
}
case $1 in
help)
echo "Usage: apt command [packages...]"
echo
echo "Valid commands are update, install, remove, dist-upgrade,"
echo "upgrade, source, show, search, hold, unhold, reconfig, check,"
echo "clean, autoclean."
;;
update|install|remove|check|source|clean|autoclean|dist-upgrade|upgrade)
apt-get $*
;;
show)
apt-cache $* | less
;;
search)
apt-cache $*
;;
hold)
dpkghold $*
;;
unhold)
shift; dpkghold install $@
;;
reconfig)
shift; dpkg-reconfigure $@
;;
# The high option is a hack really meant for local use.
high)
echo "Displaying packages with urgency=high:"
echo "'apt autoclean' recommended beforehand."
sleep 2
(find /var/cache/apt/archives -type f -name \*.deb -print;
[ -e /var/mirrors ] && find /var/mirrors -type f -name \*.deb -print) |
while read file; do
(apt-listchanges $file || (echo error reading $file 1>&2) ) |
grep urgency=\\\(high\\\|critical\\\) && echo $file
done
;;
*)
echo Unknown option: $1.
exit 1
;;
esac
Reply to: