$ tail .bash_aliases
# hold/unhold
function hold {
if [[ $# -ne 0 ]]; then
for PKG in $\*; do
echo "${PKG}" hold \| dpkg --set-selections && echo "Set ${PKG} on hold"
done
else
echo "Currently on hold:"
dpkg --get-selections \| grep hold \|\| echo "No packages set on hold"
fi
}
function unhold {
for PKG in $\*; do
echo "${PKG}" install …
There are comments.