Cover V11, I11
nov2002.tar

Table 2 OpenPKG administration commands (quick reference)

$ <prefix>/bin/rpm -Uvh <pkg-src>                unpack source package
$ <prefix>/bin/rpm -bb <pkg-spec>                build binary package from unpacked sources
$ <prefix>/bin/rpm --clean --rmsource <pkg-spec> cleanup after building binary package
$ <prefix>/bin/rpm --rebuild <pkg-src>           build binary package from source package

# <prefix>/bin/rpm -Uvh <pkg-bin>                install/upgrade package
# <prefix>/bin/rpm -Uvh --nodeps <pkg-bin>       install/upgrade package (ignore dependencies)
# <prefix>/bin/rpm -Uvh --force <pkg-bin>        install/upgrade package (no checks at all)
# <prefix>/bin/rpm -Uvh --oldpackage <pkg-bin>   install/downgrade package
# <prefix>/bin/rpm -Fvh <pkg-bin>                upgrade package (if already installed only)

# <prefix>/bin/rpm -e <pkg-name>                 uninstall/erase package
# <prefix>/bin/rpm -e --nodeps <pkg-name>        uninstall/erase package (ignore dependencies)

$ <prefix>/bin/rpm -qpi <pkg-bin>                list information about binary package
$ <prefix>/bin/rpm -qplv <pkg-bin>               list all files a binary package will install
$ <prefix>/bin/rpm -qa                           list all installed packages and their versions
$ <prefix>/bin/rpm -qi <name>                    list information about an installed package
$ <prefix>/bin/rpm -qlv <name>                   list all files a package has installed
$ <prefix>/bin/rpm -qf <prefix>/...              list package owning a particular file
$ <prefix>/bin/rpm -qc <name>                    list all config files of an installed package

$ <prefix>/bin/rpm --checksig <pkg-rpm>          verify integrity and origin of a package
$ <prefix>/bin/rpm -Va                           check the integrity of all packages
$ <prefix>/bin/rpm -V <name>                     check the integrity of a particular package
$ <prefix>/bin/rpm -Va --nofiles                 check all package dependencies only

$ <prefix>/etc/rc --config                       show all %config variables and values
$ <prefix>/etc/rc --query <variable>             query a particular %config variable
# <prefix>/etc/rc <pkg_name> start               start a particular package
# <prefix>/etc/rc <pkg_name> stop                stop  a particular package
# <prefix>/etc/rc <pkg_name> stop start          restart a particular package
# <prefix>/etc/rc all stop start                 restart all packages
$ eval `<prefix>/etc/rc --eval all env`          setup shell environment of all packages

Legend: #          command has to be executed with     root priviledges
        $          command should be executed without  root priviledges
        <prefix>   e.g. /usr/opkg
        <pkg-name> e.g. rsync
        <pkg-spec> e.g. rsync.spec
        <pkg-rpm>  e.g. rsync-2.5.5-1.1.0.*.rpm
        <pkg-src>  e.g. rsync-2.5.5-1.1.0.src.rpm
        <pkg-bin>  e.g. rsync-2.5.5-1.1.0.ix86-freebsd4.6-uo.rpm