Packaging tools unification
Paul Sladen
ubuntu at paul.sladen.org
Thu May 19 21:53:58 CDT 2005
On Thu, 19 May 2005, MadMan2k wrote:
> the syntax could look like that:
> apt search <package> ; apt install <package> ; apt reconfigure <package>
Excellent idea---will the following script do you for starters? Given the
response to the 'bazaar-ng' interface, I really like the idea of something
that people *want* to use:
http://www.paul.sladen.org/ubuntu/apt/apt (3kB)
$ apt help
Usage: apt [-h|--help] <action> [package|pattern|.deb]
apt-foo and dpkg wrapper to make life *really* baz-esq simple.
Options:
-h, --help this help
Actions:
build fakeroot apt-get -b source <package>
build-dep sudo apt-get build-dep <packages...>
clean sudo apt-get clean
dist-upgrade sudo apt-get dist-upgrade
install sudo apt-get install <packages...>
sudo dpkg -i <package.deb>
purge sudo apt-get --purge remove <packages...>
remove sudo apt-get remove <packages...>
source apt-get source
update sudo apt-get update
upgrade sudo apt-get upgrade
search apt-cache search <match>
show apt-cache show <package>
showpackage|showpkg apt-cache showpkg <package>
statistics|stats apt-cache stats
reconfigure sudo dpkg-reconfigure <package>
find|which dpkg -S <pattern>
list dpkg -l <pattern>
listfiles dpkg -L <package>
status dpkg -s <package>
select sudo dselect | sudo synaptic
archives grep '^deb ' /etc/apt/sources.list
enable <main|restricted|universe|multiverse>
info apt-cache show <package> | grep -E '^(Description:)? '
setup sudo apt-setup
For bonus points, it even knows what needs running with 'sudo', what with
'fakeroot' and what is unprivileged! Eg.
apt enable universe
apt update
apt search 'Wingdows Viruses'
apt info xbill
apt install xbill
apt which bin/xbill
apt purge xbill
apt clean
Would 'ubu' be a better name? Über Brilliant Utilty? And would you be
interested in having something like this promoted in Ubuntu?
-Paul
--
It sometimes snows here. London, GB
More information about the ubuntu-devel
mailing list