linux:centos:centos8:update-repositories
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:centos:centos8:update-repositories [2024/09/23 13:34] – created odefta | linux:centos:centos8:update-repositories [2024/09/23 13:47] (current) – [4. Create BaseOS Repository] odefta | ||
---|---|---|---|
Line 17: | Line 17: | ||
Create a new configuration file for the AppStream repository: | Create a new configuration file for the AppStream repository: | ||
- | <code bash> sudo vi / | + | <code bash> |
+ | sudo vi / | ||
+ | </ | ||
Add the following content: | Add the following content: | ||
- | < | + | < |
+ | [appstream] | ||
+ | name=CentOS Stream $releasever - AppStream | ||
+ | baseurl=http:// | ||
+ | gpgcheck=0 | ||
+ | enabled=1 | ||
+ | gpgkey=file:/// | ||
+ | </ | ||
===== 4. Create BaseOS Repository ===== | ===== 4. Create BaseOS Repository ===== | ||
Create a file for BaseOS: | Create a file for BaseOS: | ||
- | <code bash> sudo vi / | + | <code bash> |
+ | sudo vi / | ||
+ | </ | ||
Add the following content: | Add the following content: | ||
- | < | + | < |
+ | [baseos] | ||
+ | name=CentOS Stream $releasever - BaseOS | ||
+ | baseurl=http:// | ||
+ | gpgcheck=0 | ||
+ | enabled=1 | ||
+ | gpgkey=file:/// | ||
+ | </ | ||
===== 5. Clean and Regenerate Cache ===== | ===== 5. Clean and Regenerate Cache ===== | ||
Clean the yum cache and regenerate it: | Clean the yum cache and regenerate it: | ||
- | <code bash> sudo dnf clean all sudo dnf makecache </ | + | <code bash> |
+ | sudo dnf clean all | ||
+ | sudo dnf makecache | ||
+ | </ | ||
===== 6. Update System ===== | ===== 6. Update System ===== | ||
linux/centos/centos8/update-repositories.1727087659.txt.gz · Last modified: 2024/09/23 13:34 by odefta