Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Note:

This still works but is deprecated in favor of the spam project, by the same developer.

A shorter, simpler, and slightly saner interactive interface to the Debian/Ubuntu APT command-line tools.

Note: This utility is not as useful as it once was because the apt command has already incorported its headline features. However, it is still more convenient in a number of ways, so read on if you’d like.

apt may be thought of as a traffic cop that directs commands to the appropriate tool, automatically elevating itself with sudo if need-be. It consolidates all commands from apt-get and apt-cache, and the most common from aptitude, dpkg, dpkg-query, add-apt-repository, and apt-key. It has a much narrower focus than “kitchen-sink” tools such as wajig.

Hopefully this micro-project will make your life a tiny bit easier.


Installation

sudo pip install apt-wrapper

Usage

Examples:

apt                         # List available commands.
apt add universe            # Invokes sudo automatically,
Password:                   # when necessary.

apt add ppa:who/foo
apt update
apt search foo
apt policy foo
apt install foo bar
apt purge foo
apt instdeb foo.deb
apt instdeb http://foo...   # new

apt who-owns `which tr`
coreutils: /usr/bin/tr

Shortened commands

apt can also handle shortened commands. Add letters until it can be uniquely identified:

apt cl

results in:

sudo apt-get clean

Aliases

There are a few aliases for common commands as well:

apt in foo          # install foo
apt rm bar          # remove
apt se baz          # apt-cache search
apt ls boo          # list installed packages, optionally
                    # with pkg name or glob\* argument syntax.
apt dir             # dir (e.g. NT or ls -l) installed packages.

License

Licensed under the GPL, version 3+.


Release Notes

  • 1.22 - Update meta, leave github, retire repo, clean up.

  • 1.19 - Update readme.

  • 1.18 - Forced off bitbucket, move to github. Update metadata.

  • 1.15 - fix: instdeb download issue under Python3.

  • 1.12 - enh: Python 3 support, refactoring.

  • 1.11 - enh: rmrepo command to remove ppa’s.

  • 1.10 - enh: reorder messages, refactoring.

  • 1.09 - enh: addrepo can now enable standard repos, print commands by default.

  • 1.08 - enh: instdeb can now download and install from urls.

  • 1.07 - Fix auto elevate for instdeb.

  • 1.06 - Add ls and dir aliases and doc syntax.

  • 1.05 - Doc improvements.

  • 1.04 - Allow additional options to be passed thru w/o error.

  • 1.03 - Update readme with release notes and document new aliases.

  • 1.02 - Add who-owns alias for searchfiles.

  • 1.01 - Add in alias for install.

Release files for apt-wrapper 1.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apt-wrapper 1.22
File Size Uploaded
apt_wrapper-1.22.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apt-wrapper 1.22
File Interpreter ABI Platform
apt_wrapper-1.22-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / apt_wrapper-1.22.tar.gz

Download URL apt_wrapper-1.22.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8d74b0a507a91cc5145b5e29302dc593bd64bd9398299ec0994f3c48a8ae4612
BLAKE2b-256 checksum
How to use checksums
9903168ae4020c633361bb054997714ec667f151219ffa6dfbeeab42b688597d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / apt_wrapper-1.22-py3-none-any.whl

Download URL apt_wrapper-1.22-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e44a5abab2bf7949eadae144e8e0a119e32809e0722a391e82ead0f18837ddc
BLAKE2b-256 checksum
How to use checksums
e4b0af16510ace4b63a88ea1e863b186016fb273f123d6270d290d394fe1ca4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.22 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page