CUPT(1) | User Contributed Perl Documentation | CUPT(1) |
cupt - console package management tool
Cupt is a high-level package manager for Debian and Debian-based systems.
You might want to read cupt_tutorial(7) (or its HTML version at /usr/share/doc/cupt/tutorial.html) before.
cupt [ option... ] action [ { parameter | option } ... ]
Example:
"cupt config-dump"
This subcommand receives list of "Binary package version expression"'s, see below.
Specific options:
Corresponding configuration variable: apt::cache::allversions
Corresponding configuration variable: apt::cache::allversions
Examples:
"cupt show qmmp"
"cupt show --all-versions qmmp debianutils"
"cupt show --with-release-info audacious/testing apt debianutils=2.3.38"
Examples:
"cupt showsrc --all-versions qmmp"
"cupt showsrc --with-release-info audacious/testing apt"
"cupt showsrc libxine1"
This subcommand receives a list a Perl-compatible Regular Expressions (PCRE) to search. Only those packages will be printed that contain all of specified patterns.
Specific options:
Corresponding configuration variable: apt::cache::namesonly
Examples:
"cupt search nvidia driver"
"cupt search --case-sensitive Vim"
"cupt search -n vim"
"cupt search "package manager""
"cupt search --fse 'Zbd(Pn(cupt))'"
"cupt showauto": prints list of automatically installed packages
"cupt showauto --invert": prints list of manually installed packages
By default prints 'Pre-Depends', 'Depends' and 'Recommends' for the version.
This subcommand receives list of "Binary package version expression"'s, see below.
Specific options:
Corresponding configuration variable: apt::cache::recursedepends
Corresponding configuration variable: apt::cache::allversions
Examples:
"cupt depends nlkt perl/stable"
"cupt depends --important xserver-xorg-core"
"cupt depends --recurse xmlto"
This subcommand receives a list of binary package expressions (which can be empty), then one binary package expression without wildcards.
If the list of binary package expressions is empty (i.e. subcommand received only one argument), then the list is build of manually installed packages in the system.
If no dependency paths found, prints nothing.
Uses configuration variables cupt::resolver::keep-recommends and cupt::resolver::keep-suggests to determine whether to honor Recommends and Suggests respectively when building dependency paths.
Examples:
"cupt why kmail libgnutls26"
"cupt why libgnutls26"
"cupt why icedove kmail libgnutls26"
Arguments: list of binary package names.
Given no arguments, prints available Release info for binary packages.
Specific options:
Examples:
"cupt policy"
"cupt policy --show-dates"
"cupt policy dpkg"
"cupt policy libpqxx-2.6.9ldbl libpqxx-3.0"
Arguments: list of source package names.
Given no arguments, prints available Release info for source packages.
Same specific options as for "policy" subcommand.
Examples:
"cupt policysrc"
"cupt policysrc --show-dates"
"cupt policysrc dpkg"
"cupt policysrc libpqxx libpqxx3"
If no prefix is given, prints all package names
Examples:
"cupt pkgnames"
"cupt pkgnames liba"
This subcommand receives list of "Binary package version expression"'s, see below.
Works only with installed packages and official Debian and Ubuntu repositories.
Examples:
"cupt changelog dpkg/installed"
"cupt changelog --installed-only dpkg nlkt lintian"
"cupt changelog libqtcore4"
This subcommand receives list of "Binary package version expression"'s, see below.
Works only with installed packages and official Debian and Ubuntu repositories.
Examples:
"cupt copyright dpkg/installed"
"cupt copyright --installed-only dpkg nlkt lintian"
"cupt copyright libqtcore4"
This subcommand receives list of package names.
Example:
"cupt screenshots arora"
This subcommand receives no arguments.
Example: "cupt snapshot list"
Packs all cupt configuration files and repository metadata to a tar stream and outputs it to standard output.
Example: "cupt tar-metadata | xz --verbose -c > cupt-metadata.tar.xz"
query-specific options
Corresponding configuration variable: apt::cache::important
This subcommand receives no arguments.
Example:
"cupt update"
This subcommand receives list of "Binary package version expression"'s, see below.
If some version of package was already installed, this command will upgrade/downgrade it; otherwise, the package will be freshly installed.
Examples:
"cupt install nlkt"
"cupt install devscripts xserver-xorg/experimental xfce4-mixer=4.6.0-2"
This subcommand receives the list of package names.
Examples:
"cupt remove nlkt"
"cupt remove devscripts kde4-minimal"
This subcommand receives the list of package names.
Examples:
"cupt purge nlkt"
"cupt purge devscripts kde4-minimal"
See also the configuration option cupt::worker::purge.
This subcommand is usually invoked without any further parameters:
"cupt full-upgrade"
List of "Binary package version expression"'s can be however specified as additional parameters.
Example: the command "cupt full-upgrade xserver-xorg/installed" will try to upgrade your system, however preserving package 'xserver-xorg' to be sticked with currently installed version.
Recommended over "full-upgrade" for major upgrades.
This subcommand cannot be run under the Cupt shell.
This subcommand receives list of binary package names.
Examples:
"cupt reinstall libc6"
Same as "install", but silently ignores packages which are not installed.
Examples:
"cupt iii gnash"
"cupt iii xserver* *cupt*"
This subcommand receives the list of package names.
Examples:
"cupt markauto libstreamanalyzer0"
"cupt markauto lsof gimp-data"
This subcommand receives the list of package names.
Examples:
"cupt unmarkauto kpogre"
"cupt unmarkauto dpkg-dev"
This subcommand receives the list of relations or relation lines. Relation and relation lines has the same syntax as defined in Debian Policy §7.1.
The minus sign can be appended to some of relation expression lines to make relation expressions unsatisfied instead.
Examples:
"cupt satisfy "kmail (>= 4:4.2), wget (>= 1.10.0)""
"cupt satisfy "gettext (= 0.17-7)" "mail-transport-agent-""
This subcommand receives the list of "Source package version expression"'s.
Examples:
"cupt build-dep qt4-x11"
"cupt build-dep unetbootin/unstable libcdio/experimental"
This subcommand receives the list of "Source package version expression"'s.
Parameters:
Examples:
"cupt source libsort-fields-perl"
"cupt source --diff-only libpqxx cupt/unstable"
"cupt source libxine1"
This subcommand receives no arguments.
Example: "cupt clean"
This subcommand receives no arguments.
Example: "cupt autoclean"
This subcommand receives one argument - desired snapshot name.
Example: "cupt snapshot save old-udev"
This subcommand receives one argument - snapshot name to load.
Example: "cupt snapshot load old-udev"
This subcommand receives one argument - snapshot name to remove.
Example: "cupt snapshot remove old-libgtk"
This subcommand receives two arguments - old snapshot name and new snapshot name.
Example: "cupt snapshot rename old-libgtk 20091005"
This subcommand receives no arguments.
This subcommand can receive all common options which will be preserved across all session. You can override them for any subcommand in a usual way.
On every shell prompt you can supply any valid subcommand from this manual page, using all allowed parameters, just if it was command line. Simple shell quotes around arguments are also allowed.
You can use 'quit', 'exit', ':q' or 'q' command to exit cupt shell.
management-specific options
Corresponding configuration option: cupt::resolver::no-remove
Corresponding configuration option: cupt::resolver::auto-remove
Doesn't require root privileges.
Corresponding configuration option: cupt::worker::simulate
Corresponding configuration options: cupt::console::actions-preview::show-summary, cupt::console::actions-preview::show-details.
Corresponding configuration options: cupt::console::actions-preview::show-summary, cupt::console::actions-preview::show-details.
Corresponding configuration option: cupt::resolver::type
Corresponding configuration option: cupt::resolver::max-solution-count
Corresponding configuration option: apt::install-recommends
Corresponding configuration option: cupt::console::actions-preview::show-archives
This option cannot be used together with --show-archives.
Corresponding configuration option: cupt::console::actions-preview::show-codenames
Corresponding configuration option: cupt::console::actions-preview::show-components
Corresponding configuration option: cupt::console::actions-preview::show-versions
Corresponding configuration option: cupt::console::actions-preview::show-vendors
Corresponding configuration option: cupt::console::actions-preview::show-size-changes
Corresponding configuration option: cupt::console::actions-preview::show-reasons
Corresponding configuration option: cupt::console::actions-preview::show-not-preferred
Corresponding configuration option: cupt::worker::download-only
Corresponding configuration options: apt::get::assume-yes, cupt::console::assume-yes
management modifiers: action override options
Unlike all the other options, these ones are positional and are effective only for the rest of parameters (and before next override option if any). One can specify as many action override options as needed.
management modifiers: request type options
management modifiers: request importance options
management modifiers: package name suffixes
Examples:
"cupt install kde4 icewm-" - install the package 'kde4' and remove the package 'icewm' simultaneously.
"cupt full-upgrade iceweasel- icedove-" - upgrade the system, deleting iceweasel and icedove
Examples:
"cupt remove kde konqueror+" - remove kde, but install/upgrade konqueror
"cupt remove kde konqueror/installed+" - remove kde, but leave konqueror
This section documents some common expressions used by actions.
package_name[modifier]
selects one version of given binary package.
Possible modifiers:
Example: "audacious".
Example: "audacious=1.5.1-2"
Examples: "audacious/lenny" (by codename), "audacious/stable" (by archive name)
Example: "audacious/installed"
Also, you may specify shell wildcars '*' and '?' in the package names.
Examples: "xfce4-*", "python2.5-*/unstable", "?aff*/installed"
For all management subcommands, there is also '@<path-to-file>' syntax. In this case this construction will be substituted by binary package expressions listed in the specified file one by line.
package_name[modifier]
selects one version of given source package.
Possible modifiers are identical to those defined in "Binary package version expression", except for '/installed'.
Also, you can specify "Binary package version expression" as "Source package version expression", then binary-to-source mapping will be performed.
You can also use functional selectors (cupt_functionalselectors(7)) whereever "Binary package version expression" or "Source package version expression" is expected.
Examples:
"cupt remove nlkt -o 'cupt::resolver::keep-recommends=0'" (regular option)
"cupt remove nlkt -o 'apt::neverautoremove::=libcanberra0" (list option)
Corresponding configuration option: apt::default-release
Examples: "cupt install -t unstable xserver-xorg", "cupt -t squeeze full-upgrade"
Corresponding configuration options: cupt::cache::limit-releases::by-archive, cupt::cache::limit-releases::by-archive::type.
Example:
"cupt safe-upgrade --include-archives=stable,stable-updates"
Corresponding configuration options: cupt::cache::limit-releases::by-archive, cupt::cache::limit-releases::by-archive::type.
Example:
"cupt rdepends libcomerr2 --exclude-archives=experimental,unstable"
Corresponding configuration options: cupt::cache::limit-releases::by-codename, cupt::cache::limit-releases::by-codename::type.
Example:
"cupt safe-upgrade --include-codenames=squeeze,squeeze-updates"
Corresponding configuration options: cupt::cache::limit-releases::by-codename, cupt::cache::limit-releases::by-codename::type.
Example:
"cupt rdepends libcomerr2 --exclude-codenames=experimental,sid"
See cupt.conf(5).
Please report all bugs in Cupt to Debian BTS using reportbug(1).
The user support mailing list is cupt-user@lists.alioth.debian.org. The discussion channel about Cupt is irc://irc.debian.org#cupt.
cupt_vs_apt(5), cupt_tutorial(7), cupt.conf(5), cupt_functionalselectors(7)
Eugene V. Lyubimkin <jackyf@debian.org>
2018-12-10 | perl v5.28.1 |