Re: package manager overlay script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



PackageKit

On Apr 15, 2010 9:15 AM, "Rogutės Sparnuotos" <rogutes@xxxxxxxxxxxxxx>
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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux