-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
483 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# apt | ||
|
||
apt 包管理器 | ||
|
||
- show 查询指定包的详情 | ||
- search | ||
- policy 列出软件的所有来源 | ||
- install 安装软件 | ||
- remove 卸载软件 | ||
- update | ||
- upgrade | ||
|
||
## faq | ||
|
||
#### 指定版本安装 | ||
``` | ||
apt policy gdb | ||
gdb: | ||
Installed: 9.2-0ubuntu1~20.04.1 | ||
Candidate: 9.2-0ubuntu1~20.04.1 | ||
Version table: | ||
*** 9.2-0ubuntu1~20.04.1 500 | ||
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages | ||
100 /var/lib/dpkg/status | ||
9.1-0ubuntu1 500 | ||
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages | ||
``` | ||
|
||
``` | ||
apt-cache madison gdb | ||
gdb | 9.2-0ubuntu1~20.04.1 | http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages | ||
gdb | 9.1-0ubuntu1 | http://archive.ubuntu.com/ubuntu focal/main amd64 Packages | ||
``` | ||
|
||
``` | ||
apt-cache showpkg gdb | ||
``` | ||
``` | ||
sudo apt-get install <package name>=<version> | ||
``` | ||
#### 指定glibc版本安装 |
Oops, something went wrong.