linux_aria

My file bash, and configurate for linux


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

redhat repo

install redhat with cli

mount package by iso

mount package with server repo


rhsm, mematikan repo luar

with dnf

dnf config-manager --add-repo "http://10.1.10.211/rhel9.4/BaseOS"
echo "gpgcheck=0" > /etc/yum.repos.d/10.1.10.211_rhel9.4_BaseOS.repo

test repo

yum clean all
yum repolist

redhat repository server

install package

yum install createrepo

create dir repo

mkdir -p /repos/CentOS/6/5/Packages

# create repo
createrepo /repos/CentOS/6/5

# update
createrepo --update /repos/CentOS/6/5

redhat

cp -arv /mnt/disc /repos/redhat createrepo /repos/CentOS/6/5


## publish
### over httpd
```bash
yum install httpd
ln -s /var/www/html/CentOS /repos/CentOS

over vsftpd

yum install vsftpd
ln -s /var/ftp/public/CentOS /repos/CentOS

Configure Repository on Client

cd /etc/yum.repos.d
cat > local.repo << EOF
[mylocalrepo]
name=Local CentOS Repo
baseurl=http://my-repo-server/CentOS/6/5
gpgcheck=0
EOF