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
Line 72: | Line 72: | ||
* <code>[[/etc/apt/sources.list]]</code> | * <code>[[/etc/apt/sources.list]]</code> | ||
* <code>cat [[/etc/apt/sources.list]] /etc/apt/sources.list.d/*</code> | * <code>cat [[/etc/apt/sources.list]] /etc/apt/sources.list.d/*</code> | ||
+ | * <code>[[apt install]]</code> | ||
==See also== | ==See also== | ||
* {{apt}} | * {{apt}} |
Revision as of 18:36, 9 November 2021
This article is a Draft. Help us to complete it.
apt-cache policy
[1] List source repository configured included priorities of each source.
Examples
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
/etc/apt/sources.list
cat /etc/apt/sources.list /etc/apt/sources.list.d/*
apt install
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: