[arch-general] package manager overlay script

Robert Howard rjh0507 at ecu.edu
Thu Apr 15 12:19:02 EDT 2010


PackageKit

On Apr 15, 2010 9:15 AM, "Rogutės Sparnuotos" <rogutes at googlemail.com>
wrote:

Andre Osku Schmidt (2010-04-15 14:17):

> Hello,
>
> im getting tired to be forced to remember many different options for
> various package...
Hi,

Aren't shell aliases enough for this job?

if [ -f /etc/arch-release ]; then
 alias list="pacman -Ql"
 alias owns="pacman -Qo"
 alias sea="pacman -Ss"
 alias inst="sudo pacman -S"
 alias rem="sudo pacman -Rsn"
elif [ -f /etc/debian_version ]; then
 alias list="dpkg-query -L"
 alias owns="dpkg-query -S"
 alias sea="aptitude search"
 alias rem="aptitude purge"
elif [ -f /etc/exherbo-release ]; then
 alias list="paludis -k"
 alias owns="paludis --full-match -o"
 function rem() {
   paludis -u --with-unused-dependencies -p $@ && \
   read -q '?Continue [y/N]: ' && \
   paludis -u --with-unused-dependencies $@
 }
fi

--
--  Rogutės Sparnuotos


More information about the arch-general mailing list