dpkg maintains some usable information about available packages. dpkg is a tool to install, build, remove and manage Debian packages. It is better to see man applicationname and search which is the command line switch to know the version. Usually applicationname -version or applicationname -version can be used to know it. Verify that the Docker Engine installation is successful by running the hello-world image. 1 Answer Sorted by: 30 The way how to know version of an installed package varies for different programs. Using dpkg Commandĭpkg is the package manager for Debian Systems. If you use an Ubuntu derivative distro, such as Linux Mint. Unlike the original madison, it can only display information for the architecture for which APT has retrieved package lists (APT::Architecture).Īpt-cache policy firefox 3. It displays available versions of a package in a tabular format. madison pkg…: apt-cache’s madison command attempts to mimic the output format and a subset of the functionality of the Debian archive management tool, madison.Otherwise it prints out detailed information about the priority selection of the named package. With no arguments it will print out the priorities of each source. Depending on your release, either the version or the release code name is revealed in the output. This is provided by systemd, which is standard across all editions of Ubuntu. policy : policy is meant to help debug issues relating to the preferences file. One of the simplest ways to see your Ubuntu version is with the hostnamectl command.The available versions and reverse dependencies of each package listed are listed, as well as forward dependencies for each version. showpkg pkg… : showpkg displays information about the packages listed on the command line.offline).Īpt-cache command options to use to check version of installed packages: apt-get, so that it can be outdated if the last update is too long ago, but in exchange apt-cache works independently of the availability of the configured sources (e.g. The metadata is acquired and updated via the ‘update’ command of e.g. apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. Check the output for the current Ubuntu version. Using apt-cache CommandĪpt-cache performs a variety of operations on APT’s package cache. Open your terminal (CTRL + ALT + T) and then proceed. If you wish to see the version of installed firefox package, run the following command:Īpt list firefox 2. It supports patterns for matching package names as well as options to list installed (–installed), upgradeable (–upgradeable) or all available (–all-versions) versions. Using apt command with argument list is somewhat similar to dpkg-query –list in that it can display a list of packages satisfying certain criteria.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |