Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Bash by Teresa e Junior ( 13 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