1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 23:15:33 +02:00
tldr/pages/linux/apk.md
2025-03-31 02:26:19 +02:00

36 lines
767 B
Markdown

# apk
> Alpine Linux package management tool.
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper>.
- Update repository indexes and upgrade all packages:
`apk upgrade {{[-U|--update-cache]}}`
- Only update repository indexes:
`apk update`
- Install a new package:
`apk add {{package}}`
- Remove a package:
`apk del {{package}}`
- Repair/Reinstall a package without modifying main dependencies:
`apk fix {{package}}`
- 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:
`apk search {{[-d|--description]}} {{keyword}}`
- Display information about a specific package:
`apk info {{package}}`