Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-*: add more info links; apt-file: add regex search example #5710

Merged
merged 19 commits into from
Apr 17, 2021
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/linux/apt-add-repository.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# apt-add-repository

> Manages apt repository definitions.
> More information: <https://manned.org/apt-add-repository.1>.

- Add a new apt repository:

Expand Down
1 change: 1 addition & 0 deletions pages/linux/apt-cache.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# apt-cache

> Debian and Ubuntu package query tool.
> More information: <https://manned.org/apt-cache.8>.

- Search for a package in your current sources:

Expand Down
9 changes: 7 additions & 2 deletions pages/linux/apt-file.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# apt-file

> Search for files in apt packages, including ones not yet installed.
> More information: <https://manned.org/apt-file.1>.

- Update the metadata database:

`sudo apt update`

- Search for packages that contain the specified file or path:

`apt-file search {{part/of/filename}}`
`apt-file {search|find} {{part/of/filename}}`

- List the contents of a specific package:

`apt-file list {{package_name}}`
`apt-file {show|list} {{package_name}}`

- Search for packages that match the regular expresssion given in `pattern`:

`apt-file {search|find} --regexp {{pattern}}
1 change: 1 addition & 0 deletions pages/linux/apt-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

> Debian and Ubuntu package management utility.
> Search for packages using `apt-cache`.
> More information: <https://manned.org/apt-get.8>.

- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):

Expand Down
3 changes: 3 additions & 0 deletions pages/linux/apt-key.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# apt-key

> Key management utility for the APT Package Manager on Debian and Ubuntu.
> Be carefull as `apt-key` is now deprecated except for the use of `apt-key del`
> in maintainer scripts to remove existing keys from the main keyring.
> More information: <https://manned.org/apt-key.8>.

- List trusted keys:

Expand Down
1 change: 1 addition & 0 deletions pages/linux/apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

> Package management utility for Debian based distributions.
> Recommended replacement for apt-get when used interactively in Ubuntu versions 16.04 and later.
> More information: <https://manned.org/apt.8>.

- Update the list of available packages and versions (it's recommended to run this before other `apt` commands):

Expand Down
1 change: 1 addition & 0 deletions pages/linux/aptitude.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# aptitude

> Debian and Ubuntu package management utility.
> More information: <https://manned.org/aptitude.8>.

- Synchronize list of packages and versions available. This should be run first, before running subsequent aptitude commands:

Expand Down