August 26, 2023

Check whether a package is availabile in the repository of a GNU/Linux’s distribution

In the terminal, run:

$ apt list package

For example:

$ apt list git

prints:

$ apt list git
Listing... Done
git/nabia-security,now 1:2.25.1-1ubuntu3.11 amd64 [installed]
git/nabia-security 1:2.25.1-1ubuntu3.11 i386

To lear more about apt, the command-line interface for the package management system, and the option list run

$ man apt

See also:


command-line interface (cli) gnu linux trisquel personal computing wiki shell literacy office applications offline

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88