Difference between revisions of "Apt-cache policy"
Jump to navigation
Jump to search
↑ http://manpages.ubuntu.com/manpages/xenial/man8/apt-cache.8.html#options
Tags: Mobile web edit, Mobile edit |
|||
Line 1: | Line 1: | ||
{{Draft}} | {{Draft}} | ||
* <code>[[apt-cache policy]]</code><ref>http://manpages.ubuntu.com/manpages/xenial/man8/apt-cache.8.html#options</ref> List source repository configured included priorities of each source. | * <code>[[apt-cache policy]]</code><ref>http://manpages.ubuntu.com/manpages/xenial/man8/apt-cache.8.html#options</ref> List source repository configured included priorities of each source. | ||
+ | |||
+ | <pre> | ||
+ | apt-cache policy nginx-core | ||
+ | nginx-core: | ||
+ | Installed: 1.14.0-0ubuntu1.7 | ||
+ | Candidate: 1.14.0-0ubuntu1.7 | ||
+ | Version table: | ||
+ | *** 1.14.0-0ubuntu1.7 500 | ||
+ | 500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages | ||
+ | 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages | ||
+ | 100 /var/lib/dpkg/status | ||
+ | 1.14.0-0ubuntu1 500 | ||
+ | 500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages | ||
+ | </pre> | ||
Revision as of 12:51, 13 April 2021
This article is a Draft. Help us to complete it.
apt-cache policy
[1] List source repository configured included priorities of each source.
apt-cache policy nginx-core nginx-core: Installed: 1.14.0-0ubuntu1.7 Candidate: 1.14.0-0ubuntu1.7 Version table: *** 1.14.0-0ubuntu1.7 500 500 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages 100 /var/lib/dpkg/status 1.14.0-0ubuntu1 500 500 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages
Related terms
/etc/apt/sources.list
cat /etc/apt/sources.list /etc/apt/sources.list.d/*
See also
APT
:wajig
,apt-cache
,add-apt-repository
PPA,apt
[install
|remove
|purge | show | list | changelog
|update
|upgrade
],do-release-upgrade
,apt-mark
,apt full-upgrade
,sources.list
, APT Automatic updates,unattended-upgrade
,apt-transport-https
,apt-get update
,/etc/apt/
,/etc/apt/apt.conf.d/50unattended-upgrades
,/etc/apt/apt.conf.d/
,/etc/apt/apt.conf.d/20auto-upgrades
,apt-file, apt-utils
Advertising: