21 lines
489 B
Markdown
21 lines
489 B
Markdown
# HowtoCentOS
|
|
|
|
List versions of a package.
|
|
|
|
```console
|
|
# yum list <package> --show-duplicates
|
|
```
|
|
|
|
Upgrade from 8 to Stream.
|
|
|
|
```console
|
|
# dnf install centos-release-stream && dnf update
|
|
```
|
|
|
|
Exclude path when unpacking package. Useful for unprivileged containers.
|
|
|
|
```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
|
|
```
|