2018-02-08 13:39:45 +05:30
|
|
|
# apk
|
|
|
|
|
|
|
|
> Alpine Linux package management tool.
|
2025-03-31 00:26:19 +00:00
|
|
|
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper>.
|
2018-02-08 13:39:45 +05:30
|
|
|
|
2025-03-31 00:26:19 +00:00
|
|
|
- Update repository indexes and upgrade all packages:
|
|
|
|
|
|
|
|
`apk upgrade {{[-U|--update-cache]}}`
|
|
|
|
|
|
|
|
- Only update repository indexes:
|
2018-02-08 13:39:45 +05:30
|
|
|
|
|
|
|
`apk update`
|
|
|
|
|
|
|
|
- Install a new package:
|
|
|
|
|
|
|
|
`apk add {{package}}`
|
|
|
|
|
|
|
|
- Remove a package:
|
|
|
|
|
|
|
|
`apk del {{package}}`
|
|
|
|
|
2025-03-31 00:26:19 +00:00
|
|
|
- Repair/Reinstall a package without modifying main dependencies:
|
2018-02-08 13:39:45 +05:30
|
|
|
|
|
|
|
`apk fix {{package}}`
|
|
|
|
|
2025-03-31 00:26:19 +00:00
|
|
|
- Search for packages with a keyword in their name and list results with descriptions:
|
|
|
|
|
|
|
|
`apk search {{[-v|--verbose]}} {{keyword}}`
|
|
|
|
|
|
|
|
- Search for packages with a keyword in their description:
|
2018-02-08 13:39:45 +05:30
|
|
|
|
2025-03-31 00:26:19 +00:00
|
|
|
`apk search {{[-d|--description]}} {{keyword}}`
|
2018-02-08 13:39:45 +05:30
|
|
|
|
2022-10-20 18:16:15 +02:00
|
|
|
- Display information about a specific package:
|
2018-02-08 13:39:45 +05:30
|
|
|
|
|
|
|
`apk info {{package}}`
|