这里会显示出您选择的修订版和当前版本之间的差别。
jaysnote:apt-get [2018/11/12 16:51] jaylee 创建 |
jaysnote:apt-get [2021/06/22 23:14] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | < | ||
- | # apt-get | ||
- | |||
- | * man apt-get | ||
- | |||
- | ```shell | ||
- | apt-get install python-opencv | ||
- | apt-get remove | ||
- | apt-get update | ||
- | apt-get upgrade | ||
- | ``` | ||
- | |||
- | * man apt-cache | ||
- | |||
- | ``` | ||
- | / | ||
- | apt-cache showpkg python-opencv | ||
- | apt-cache show python-pencv | ||
- | ``` | ||
- | |||
- | * man sources.list | ||
- | |||
- | ```c | ||
- | EXAMPLES | ||
- | Uses the archive stored locally (or NFS mounted) at / | ||
- | | ||
- | deb file:/ | ||
- | | ||
- | As above, except this uses the unstable (development) distribution. | ||
- | | ||
- | deb file:/ | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | The first line gets package information for the architectures in APT:: | ||
- | | ||
- | deb http:// | ||
- | deb [ arch=amd64, | ||
- | | ||
- | Uses HTTP to access the archive at archive.debian.org, | ||
- | | ||
- | deb http:// | ||
- | | ||
- | Uses FTP to access the archive at ftp.debian.org, | ||
- | | ||
- | deb ftp:// | ||
- | | ||
- | Uses FTP to access the archive at ftp.debian.org, | ||
- | | ||
- | | ||
- | deb ftp:// | ||
- | | ||
- | Uses HTTP to access the archive at ftp.tlh.debian.org, | ||
- | forth for other supported architectures. [Note this example only illustrates how to use the substitution variable; official debian archives are not structured like this] | ||
- | | ||
- | deb http:// | ||
- | |||
- | ``` | ||
- | |||
- | * https:// | ||
- | |||
- | </ |