1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-02 18:35:31 +02:00
tldr/pages/linux/apk.md

37 lines
767 B
Markdown
Raw Normal View History

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}}`