Dpkg command used in Ubuntu for package management have a very ugly output,
especially in comparison to Arch's pacman
or Gentoo's emerge
. So I want to
write a little script to beautify its output,like this:
currently, I only finished a few commands,there is still a lot work to do. Any suggestion and feedback will be welcome. Email : [email protected].
This script use some system tools :
grep
awk
apt-cache
dpkg
(from Debian)dpkg-query
(from Debian)
just download the script :
wget https://raw.githubusercontent.com/hangyan/dpkg-pacman/master/pacman.sh
and put somewhere you think appropriate and chmod a+x pacman.sh
.
Search packages.
currently only support search one package at a time。
Show installed packages's files.
The output is not clear as tree
,but is better than the origin
show package's dependencies and reverse depends.
origin output of apt-cache showpkg htop
:
the new one of pacman.sh deps htop
:
show package's infomation (apt-cache show pkgname
) :