====== Ubuntu - apt - Display details about a package ======
To show or see information about the given package(s) including its dependencies, installation and download size, sources the package is available from, the description of the packages content and much more.
* Works like **apt-cache show** but hide some details that people are less likely to care about (like the hashes).
* The full record is still available via **apt-cache show** of course.
----
apt show [package name]
----
===== Example =====
apt show sudo
returns:
Package: sudo
Version: 1.9.9-1ubuntu2.4
Priority: important
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Sudo Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,568 kB
Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.34), libpam0g (>= 0.99.7.1), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.0.2), libpam-modules, lsb-base
Conflicts: sudo-ldap
Replaces: sudo-ldap
Homepage: https://www.sudo.ws/
Task: minimal, server-minimal
Download-Size: 821 kB
APT-Manual-Installed: no
APT-Sources: http://je.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
Description: Provide limited super user privileges to specific users
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is to give
as few privileges as possible but still allow people to get their work done.
.
This version is built with minimal shared library dependencies, use the
sudo-ldap package instead if you need LDAP support for sudoers.
N: There is 1 additional record. Please use the '-a' switch to see it
**NOTE:** Notice the last sentence.
----
===== Display all package information =====
apt show sudo -a
returns:
Package: sudo
Version: 1.9.9-1ubuntu2.4
Priority: important
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Sudo Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,568 kB
Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.34), libpam0g (>= 0.99.7.1), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.0.2), libpam-modules, lsb-base
Conflicts: sudo-ldap
Replaces: sudo-ldap
Homepage: https://www.sudo.ws/
Task: minimal, server-minimal
Download-Size: 821 kB
APT-Manual-Installed: no
APT-Sources: http://je.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
Description: Provide limited super user privileges to specific users
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is to give
as few privileges as possible but still allow people to get their work done.
.
This version is built with minimal shared library dependencies, use the
sudo-ldap package instead if you need LDAP support for sudoers.
Package: sudo
Version: 1.9.9-1ubuntu2
Priority: important
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Sudo Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,564 kB
Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.34), libpam0g (>= 0.99.7.1), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.0.2), libpam-modules, lsb-base
Conflicts: sudo-ldap
Replaces: sudo-ldap
Homepage: https://www.sudo.ws/
Task: minimal, server-minimal
Download-Size: 820 kB
APT-Sources: http://je.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
Description: Provide limited super user privileges to specific users
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity. The basic philosophy is to give
as few privileges as possible but still allow people to get their work done.
.
This version is built with minimal shared library dependencies, use the
sudo-ldap package instead if you need LDAP support for sudoers.