Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as Bash by Teresa e Junior ( 14 years ago )
#!/bin/sh -eu
#
# set package you want to hold:
package=xserver-xorg
#
sudo apt-get install equivs
mkdir -p ${meta:=$package-hold}
( cd $meta
equivs-control control
sed -i "
s/^Priority.*/Essential: yes\nPriority: required/
s/^Package.*/Package: $meta/
s/^Description.*/Description: Metapackage to hold $package/
/^ .*/d
" control
printf " This metapackage avoids $package to be removed\n" >>control
equivs-build control
printf "\nInstalling $meta...\n"
sudo dpkg -i $meta*.deb
)
rm -fr $meta
Revise this Paste