Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to create local yum repositories?

create local repositories yum
0
Posted

How to create local yum repositories?

0

Make repo directories in the any partition for example /opt with: mkdir -p fedora/os/i386/ mkdir -p fedora/updates/i386 Copy the os rpm packages from the cd’s to the fedora/os/i386, open the fedora/os and run the command: createrepo i386/ This well create the repodata directory with needed header files, copy the update rpm packages to the fedora/updates/i386, open the fedora/updates and run the commmand: createrepo i386/ To add these repos to yum, creat two files fedora.repo and updates.repo as shown below and put them in the /etc/yum.repos.d: Copy these lines to fedora.repo: [fedora] name=Fedora $releasever – $basearch baseurl=file:///opt/fedora/os/$basearch enabled=1 Copy these lines to updates.repo: [updates] name=Updates $releasever – $basearch baseurl=baseurl=file:///opt/fedora/updates/$basearch enabled=1 With rsync can synchronize the local updates with the remote updates directory in the fedora mirror, read rsync manual for details.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.