Score:0

Create local yum repository for a package which is available on http

in flag

I am trying to create local yum repo for packages. I have followed steps here to create the repo: https://phoenixnap.com/kb/create-local-yum-repository-centos

But now, I want to create repo for a package helix-swarm which is available here: http://package.perforce.com/yum/rhel/7/x86_64/

Based on the answer here How can I create a yum repository from downloaded packages? , it seems I can do it by downloading the rpm packages and run createrepo command. But is there a simpler way to do this? As you can see, this link has more than 40 rpm packages and downloading it one by one and creating repo is tedious task. So wondering if there is an easy way to create the local repo.

Pardon me if its too novice questions to ask on this platform.

user9517 avatar
cn flag
reposync may do what you want
Michael Hampton avatar
cz flag
That web URL already contains a valid yum repo. Why are you not [using it directly](https://www.perforce.com/perforce-packages) or just mirroring it?
kaounKaoun avatar
in flag
@MichaelHampton the server doesn't have access to external URL and also can't mirror it. Hence I am trying to create my own internal repo which can be used.
Michael Hampton avatar
cz flag
Exactly! That's why you should just mirror it.
kaounKaoun avatar
in flag
thanks @MichaelHampton it helped. can you please help how we can mirror or make local copy of packages like php-pecl https://pecl.php.net/. i see this tutorial but that doesn't seems to help: https://www.cyberciti.biz/faq/install-php-redis-on-centos-8-rhel-8-linux/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.