You should have a FTP server or HTTP server to make yum actually
working. However since we haven't really gone through setting up FTP or
HTTP server, please read-on and understand the process. If you have got
vsftpd installed, use that. Otherwise, don't forget to actually set it
up yourself later.
Here we will create a local repository for Fedora and CentOS in the easy way.
0. You should have the yum as well as the createrepo package installed first.
1. Create the directory to hold the repository.
mkdir -p /var/ftp/pub/yum-repo/centos/
mkdir -p /var/ftp/pub/yum-repo/fedora/
2. createrepo /var/ftp/pub/yum-repo/centos/ ; createrepo /var/ftp/pub/yum-repo/fedora/ will create the local yum repository by creating a folder named "repodata with four xml files named, filelists.xml.gz, other.xml.gz, primary.xml.gz and repomd.xml
............
http://humanlinux.blogspot.com/2009/04/how-to-create-local-repository-for.html
Here we will create a local repository for Fedora and CentOS in the easy way.
0. You should have the yum as well as the createrepo package installed first.
1. Create the directory to hold the repository.
mkdir -p /var/ftp/pub/yum-repo/centos/
mkdir -p /var/ftp/pub/yum-repo/fedora/
2. createrepo /var/ftp/pub/yum-repo/centos/ ; createrepo /var/ftp/pub/yum-repo/fedora/ will create the local yum repository by creating a folder named "repodata with four xml files named, filelists.xml.gz, other.xml.gz, primary.xml.gz and repomd.xml
............
http://humanlinux.blogspot.com/2009/04/how-to-create-local-repository-for.html
Comments
Post a Comment