User Tools

Site Tools


linux:centos:centos8:update-repositories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:centos:centos8:update-repositories [2024/09/23 13:34] – created odeftalinux: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 /etc/yum.repos.d/CentOS-Stream-AppStream.repo </code>+<code bash> 
 +sudo vi /etc/yum.repos.d/CentOS-Stream-AppStream.repo  
 +</code> 
 Add the following content: Add the following content:
  
-<code> [appstream] name=CentOS Stream $releasever - AppStream baseurl=http://vault.centos.org/centos/8-stream/AppStream/$basearch/os/ gpgcheck=enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial </code>+<code> 
 +[appstream] 
 +name=CentOS Stream $releasever - AppStream 
 +baseurl=http://vault.centos.org/centos/8-stream/AppStream/$basearch/os/ 
 +gpgcheck=
 +enabled=1 
 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 
 +</code>
 ===== 4. Create BaseOS Repository ===== ===== 4. Create BaseOS Repository =====
  
 Create a file for BaseOS: Create a file for BaseOS:
  
-<code bash> sudo vi /etc/yum.repos.d/CentOS-Stream-BaseOS.repo </code>+<code bash> 
 +sudo vi /etc/yum.repos.d/CentOS-Stream-BaseOS.repo 
 +</code> 
 Add the following content: Add the following content:
  
-<code> [baseos] name=CentOS Stream $releasever - BaseOS baseurl=http://vault.centos.org/centos/8-stream/BaseOS/$basearch/os/ gpgcheck=enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial </code>+<code> 
 +[baseos] 
 +name=CentOS Stream $releasever - BaseOS 
 +baseurl=http://vault.centos.org/centos/8-stream/BaseOS/$basearch/os/ 
 +gpgcheck=
 +enabled=1 
 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 
 +</code>
 ===== 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>+<code bash> 
 +sudo dnf clean all  
 +sudo dnf makecache 
 +</code>
 ===== 6. Update System ===== ===== 6. Update System =====
  
linux/centos/centos8/update-repositories.1727087659.txt.gz · Last modified: 2024/09/23 13:34 by odefta