mkdocs-benoit.jp.net/docs/Howtos/HowtoCentOS.md

22 lines
489 B
Markdown
Raw Normal View History

2020-12-09 02:06:04 +00:00
# HowtoCentOS
2022-07-21 07:53:26 +00:00
List versions of a package.
```console
# yum list <package> --show-duplicates
```
2020-12-09 02:06:04 +00:00
Upgrade from 8 to Stream.
2021-02-20 06:06:15 +00:00
```console
# dnf install centos-release-stream && dnf update
2020-12-09 02:06:04 +00:00
```
Exclude path when unpacking package. Useful for unprivileged containers.
2021-02-20 06:06:15 +00:00
```console
# dnf reinstall --downloadonly filesystem
# find /var/cache -iname "*filesy*"
# rpm -ivh --excludepath=/proc --excludepath=/sys /var/cache/dnf/baseos-504ddb1bf3482a98/packages/filesystem-3.8-3.el8.x86_64.rpm
2020-12-09 02:06:04 +00:00
```