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
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Draft}} | {{Draft}} | ||
− | * <code>[[apt-cache | + | * <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 | grep http | awk '{print $2 $3}' | sort -u</code> | |
− | |||
− | |||
== Examples == | == Examples == | ||
Line 79: | Line 77: | ||
== See also == | == See also == | ||
* {{apt-cache}} | * {{apt-cache}} | ||
+ | * {{apt-get}} | ||
* {{apt}} | * {{apt}} | ||
[[Category:APT]] | [[Category:APT]] |
Latest revision as of 09:59, 14 March 2024
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 | grep http | awk '{print $2 $3}' | sort -u
Examples[edit]
apt-cache policy Package files: 100 /var/lib/dpkg/status release a=now 500 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=multiverse,b=amd64 origin security.ubuntu.com 500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=universe,b=amd64 origin security.ubuntu.com 500 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=restricted,b=amd64 origin security.ubuntu.com 500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=main,b=amd64 origin security.ubuntu.com 100 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal-backports,n=focal,l=Ubuntu,c=universe,b=amd64 origin archive.ubuntu.com 100 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages release v=20.04,o=Ubuntu,a=focal-backports,n=focal,l=Ubuntu,c=main,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=multiverse,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=universe,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=restricted,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=main,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=multiverse,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=universe,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=restricted,b=amd64 origin archive.ubuntu.com 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=main,b=amd64 origin archive.ubuntu.com Pinned packages:
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[edit]
See also[edit]
- APT:
apt-cache
[showpkg | search | policy | madison ]
apt-get [ install | upgrade | update | source ], /etc/apt/sources.list
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: