Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A wrapper for all Linux/Unix package managers
branch: mos

This branch is 211 commits behind icy:ng

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


An Arch's pacman-liked package manager for all Linux distributions.
Actually this Bash script provides a wrapper for system's package manager.

Instead of remembering various options/tools on different OSs, you only
need a common way to manipulate packages. Not all options of the native
package manager are ported; the tool only provides very basic interface to
search, install, remove packages and/or update the system.

Arch's pacman is chosen, as pacman is quite smart when it devides all
packages-related operations into three major groups: Synchronize, Query
and Remove/Clean up. It has a clean man page, and it is the only tool
needed to manipulate official packages on system. (Debian, for example,
requires you to use apt-get, dpkg and/or aptitude.)

The tool supports the following types of package manager:

  pacman        by Arch Linux, ArchBang
  dpkg/apt-get  by Debian, Ubuntu
  yum/rpm       by Redhat, CentOS, Fedora Core


  $0 <operation> <option(s)> <packages>



    -Q              list all installed packages
    -Ql <package>   list package's files
    -Qi <package>   print package status


    -S <package>    install package(s)
    -Su             upgrade the system
    -Sy             update package database
    -Ss <package>   search for packages
    -Sy <package>   update package database, then install <package>

  Remove / Clean up

    -R <package>    remove some packages
    -Sc             delete old downloaded packages
    -Scc            delete all downloaded packages
    -Sccc           clean variant files.
                    (debian) See details at

    -f              force yes
    -v              be verbose
    -w              download packages but donot install them


  To install a package from backports repository on Debian system:
              pacman -S foobar -t lenny-backports

  Similiarily, any further option which isn't recognized by getopts (1)
  can be passed to system tool.

  When being executed on Arch-liked system, the tool simplify invokes
  the system tool '/usr/bin/pacman'. So you would never install this tool
  as '/usr/bin/pacman', otherwise you may break your system!

This program is written by Anh K. Huynh. The source can be found at
Something went wrong with that request. Please try again.