CentOS 5 :: How To Create Own RPM Repo
Sep 29, 2010
I'm writing a lot of RPM's and I would like to make some of them available to other users, through my website. On the server side, everything is set (directory structure, etc.). I just don't know how to build the custom .repo file, containing only my custom RPM's.
$ su -
# cd /etc/yum.repos.d
# wget [URL]
View 1 Replies
ADVERTISEMENT
May 24, 2010
I want to set up an installation server for CentOS 5.5, using PXE for boot, kickstart for package selection (one for server), and NFS for share all files needed.I've succesfully completed a fresh installation of CentOS5 from the DVD for one of my servers (virgil), and I've copied the anaconda-ks.cfg generated by the installer to my install server (beatrix).
Next, I've properly configured the /etc/dhcpd.conf , the /tftpboot/pxelinux.cfg/<IP_CODED> and the /etc/exports for NFS sharing on beatrix.Then, I've copied all the first DVD of CentOS5 content in this folder on beatrix: /opt/CentOS_install I've tried to start virgil from ethernet, and all has gone ok, with the kickstart and so on! But I've decided to apply the updates (new kernel, sudo, xorg, ...), so I've deleted the old rpms from /opt/CentOS_install/CentOS and copied the new ones (downloaded from http://mirror.centos.org/centos-5/5/updates/x86_64/RPMS/). So, I've launched the following commands to recreate the repodata:
root@beatrix:/opt/CentOS_install/ # mv repodata/comps.xml CentOS/
root@beatrix:/opt/CentOS_install/ # rm -fr repodata
root@beatrix:/opt/CentOS_install/ # createrepo -p -o /opt/CentOS_install/ -g comps.xml /opt/CentOS_install/CentOS
But when I try to reinstall virgil, an error message appears, telling me that a package (perl-DBI-...) isn't present in the media.After some debugging, I've noticed that in the /opt/CentOS_install/repodata/primary.xml.gz there isn't the correct path for the rpms. If you look at the original primary.xml, the "path" is like:path="CentOS/abcxyz.rpm" while in the generated file (with createrepo) the path is:
path="abcxyz.rpm".How can I recreate the repodata with the correct path information?
View 6 Replies
View Related
Aug 16, 2010
I'm in the process of creating local repos for our company servers (CentOS 5.5) and laptops (Fedora 13). And while the CentOS part went perfect the Fedora part is causing major trouble.But first things first, here's the setup: a central CentOS 5.5 server is running Apache2 and has a VirtualHost listening on Port 8080 for both CentOS and Fedora. The DocumentRoot for this VirtualHost is /data/repo wherein two directories, centos and fedora, reside.
This is the .repo-file for CentOS that works like a charm:
Quote:[local]
name=CentOS-$releasever - local packages for $basearch
[code]...
View 5 Replies
View Related
Aug 8, 2010
Is there a way to create a cache repo so when we update all our machines in Ur school, ones one of the machines do the update, all the other machine in our network will have the updates from the cache server.
we did something like that with APT and ubuntu
View 1 Replies
View Related
Dec 9, 2009
I am trying to install CentOS-DS on version 5.4 x86_64. I cannot get to the Extras repo due to lack of wired Internet access. I have wireless (except to server) and I have big UFD drives.
View 1 Replies
View Related
Oct 22, 2009
Just checking to be sure. 5.3>5.4 update went without a hitch:) But a message ran about (/etc/yum.repo.d) CentOS-Base.repo.rpmnew. Comparing CentOS-Base.repo with the new one show the 1st has the correct priorities and .rpmnew does not have the correct priorities. Should I remove the *.rpmnew repo after making sure it otherwise is the same as the original CentOS-Base.repo?
View 1 Replies
View Related
Aug 16, 2010
I'm in the process of creating local repos for our company servers (CentOS 5.5) and laptops (Fedora 13). And while the CentOS part went perfect the Fedora part is causing major trouble.
But first things first, here's the setup: a central CentOS 5.5 server is running Apache2 and has a VirtualHost listening on Port 8080 for both CentOS and Fedora. The DocumentRoot for this VirtualHost is /data/repo wherein two directories, centos and fedora, reside.
This is the .repo-file for CentOS that works like a charm:
Quote:
[local]
name=CentOS-$releasever - local packages for $basearch
baseurl=url
enabled=1
After the CentOS repository was up and running I follwed the exact same steps and was expecting to find a Fedora repo up and running (I know, I know, silly me...). However, yum complains it cannot download the repomd.xml. The .repo-File is as follows:
Quote:
[local]
name=Fedora $releasever - $basearch
baseurl=http://icld:8080/fedora/$releasever/local/$basearch
enabled=1
gpgcheck=0
protect=1
Yum returns the following error message:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: local. Please verify its path and try again
The path is definitely correct - copying the url and pasting it into a webbrowser returns the correct repomd.xml file, so does pasting it to wget.
Any ideas? Does createrepo need any parameters in order to create a working Fedora repository?
View 3 Replies
View Related
Feb 6, 2011
I was installing yum from the server folder. first i copied the server folder in a folder which was at root then i change the current directory to server and then create a repo by using following command
Server]# rpm ivh createrepo then tab to get the correct name
then ]# createrepo .
]#cd /etc/yum.repos.d/
]# cp -apr rhel_debug_info.repo yum.repo
]# vi yum.repo
[Code]...
how can i completely install the yum so that i can install my necessary packages
View 1 Replies
View Related
Jan 22, 2009
I am not able to easily tell what yum is doing when attempting to decide what to do when given repo files that have defined the same name (eg "[updates]"). Yum seems to spot the dups, but seems to *always* select the mirrorlist from the CentOS-Base.repo. I have unsuccessfully tried to have my custom.repo come before the CentOS-Base.repo using 01custom.repo or CUSTOM.repo. My hope is just to overload yum into using the custom.repo *without* removing/modifying the CentOS-Base.repo. If I remove the CentOS-Base.repo, the custom.repo works. Even with all of the custom.repo, 01custom.repo or CUSTOM.repo in the yum.repos.d dir and no CentOS-Base.repo, yum does what I want.
View 4 Replies
View Related
May 23, 2010
the best repo. of them all which includes all the software needed.?ans is there any repo which allow latest softwares in centos like fedora.????cause i don't want to install all repos.in centos 5.5.
View 1 Replies
View Related
Jun 17, 2010
I dont have a internet connection and I want to install VLC. I want to create a local repo for a vlc by downloading all the required packages. I tried to do by downloading all the packages from from VLC repo and create a local repo but failed. Its say this dependency failed and that dependency failed. i tried to manually install each and every dependency but still the problem exists.
View 2 Replies
View Related
Jun 23, 2010
The only thing is that rpm.hozac.com wasn't responding so I got my new kernel from a mirror site. However the mirror doesn't know anything about the GPG key. On the instructions page it said that rpm.hozac.com is "often unavailable" and gives an alternative location for the kernel download. But it doesn't say what to do about the GPG key! And I can't load the new kernel without the key.So, what do I do? (Apart from wait until the repository comes back online!)
View 1 Replies
View Related
Apr 3, 2009
I can not find the source rpm repo ! [URL]... We need to rebuild the rpm pack. with high file descripter. But I 'm suprized when I can't reach the srpm repo. where is the repo?
View 1 Replies
View Related
May 20, 2009
How to update repo for "yum"
View 1 Replies
View Related
Aug 11, 2009
help2man doesn't seem to be in any of the karan repos or in the CentOS5.3 base repos. Is it available in any other repos?
View 1 Replies
View Related
Jul 1, 2011
i want install goldendict and source downloaded and i want compile it. for compile i need this packages :
Building under Linux: Make sure you have those dependency packages installed: libvorbis-dev, zlib1g-dev, libhunspell-dev, x11proto-record-dev, qt4-qmake, libqt4-dev, g++, libxtst-dev, libphonon-dev. They can be named slightly different in different distributions
View 5 Replies
View Related
Jan 10, 2011
I need to install on Centos 5.5 GLIBC version 3.x.The installed and available version is 2.5 only.Does anybody know how can I use a beta repo from Centos6?
View 5 Replies
View Related
Mar 12, 2009
why don't CentOS update php version in official repo? It's been a while after 5.2.x is released... but CentOS's official repo users are still on 5.1.6
View 5 Replies
View Related
May 4, 2009
Any official or 3rd party yum repo that supports gnugk (GateKeeper for VoIP)? I am trying to install gnugk in a centos 5 environment.
View 2 Replies
View Related
Oct 28, 2009
I just created a repository for CentOS 5.3 and 5.4 on my webserver for the network to use. I followed the steps listed here: [URL] All went well up until testing out the repository. Here is the output of "yum update"
[root@titan yum.repos.d]# yum update
Loaded plugins: downloadonly, fastestmirror, priorities
Repository base is listed more than once in the configuration
Repository extras is listed more than once in the configuration
[Code].....
I'm unsure as to why yum is looking in the "5" directory instead of "5.3" or "5.4" and it looks like that is the only issue. It seems as though $releasever is returning 5 instead of the current 5.3 that this system is on.
View 1 Replies
View Related
Dec 8, 2009
what is gpgcheck in .repo files in the /etc/yum.repo.d directory
View 1 Replies
View Related
Jan 20, 2011
Hi, I am trying to add the RPMForge repo by following this guide [URL].. But when I try to verify the package I have downloaded, I get the following message
Quote:[sauro@localhost ~]$ sudo rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm error: rpmforge-release-0.5.2-2.el5.rf.*.rpm: open failed: No such file or directory
View 7 Replies
View Related
Mar 4, 2011
I've been having problems installing httpd (in that it cannot be found when I do a Yum search). I get this error when running yum:
Bad id for repo: CentOS5 base, byte = 7
Bad id for repo: CentOS5 updates, byte = 7
View 3 Replies
View Related
Oct 22, 2009
In the release anouncement there is mention of adding additional repo's at install time. Is this also possible in the kickstart file?
View 1 Replies
View Related
Dec 6, 2009
how can i update php to the latest version from the testing repo via USB ? my machine has no internet access and no cdrom, my only choice is via USB, i have a 2 gb USB.
edit: i am trying to follow this guide: [URL] since i have no internet access, i have downloaded all files to my USB stick. i added the testing repo manually. is there a way to instruct centos to update these packages from my usb stick ? since i have them on USB, i can upload them on centos.
View 2 Replies
View Related
Feb 3, 2010
I don't know if this would be usefull to others but since we are using kickstart and then running post install scripts I needed a way to add rpmforge and set the yum-priorities for it correctly via script and here is what I cam up with. If you want to use go ahead (make sure you comment/uncomment the correct repo for your architecture). also not the ex commands are whitespace sensitive. If anyone sees a way to improve this let me know.
View 2 Replies
View Related
Sep 9, 2010
I am having issues getting yum to work with the repos for fail2ban and denyhosts. I followed the centos link on installing/cfg repos. However every time i run yum install fail2ban or denyhosts it does not find the software. I read in several google searches that I should be able to install it using yum. Is that info wrong? These are the link I was s reading too from centos. [URL]. I know I can download the rpm or a tar file but I would like to keep it in sync with yum if possible. May be I have the wrong repo? CentOSPlus is enabled also.
View 3 Replies
View Related
Feb 20, 2011
I'm kind of hoping that many of the apps I am looking for live on this mirror. It was installed by default by CentOS 5.5 when I installed.
My repo file is included at the bottom. Checking the path http://mirror.centos.org/centos-5/5.5/ there is no media dir which would explain the 404 error I get when I try to enable the repository. The question is where does it live or is this repo defunct? code...
View 3 Replies
View Related
Mar 26, 2011
i'm attempting to know and understand fedora more and i will spend probably the next month pouring through all the forums and documents to answer more of my own questions. but there's quite a bit here, so i'd thought i'd ask some noob questions to get me started a little.
ive installed fedora 14 64bit and chosen only kde as the desktop. i selected an extra 2 repos besides the default, fedora 14 -x86_64 and fedora 14-x86_64 -updates. i believe this kernel is installed: 2.6.35.11-83
1. i can only see the 2 extra repo's as being "checked" in kpackagekit, shouldn't i see the default repo also ?
2. i dont have an applet in the system tray indicating the system is up to date, does fedora have this by default ? also after a clean install i ran yum check-update and yum update but the message sayes: "no packages marked for update". i'm not sure if the system is auto-updated during install or not, but with other distros iv tried there is always atleast a few updates needing to be done after install.
3. is kpackagekit the fedora gui package manager ? i dont see any others.
4. i want to upgrade to nvidia drivers, but i think i am missing a non-free repo or something. when i enter: yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64 i get messages stating "no package" i get the same message with yum install nvidia-settings.i also tried this: LANG=C yum --enablerepo=rpmfusion-nonfree info akmod-nvidia but it sayes repo not found.
View 4 Replies
View Related
May 21, 2010
Since I need to install Grace on several lab workstations, I've been working on getting the mirrors.kernel.org fedora 6 extras repo to work. This is what I've done on one workstation: Added to /etc/yum.repos.d/fc6extras.repo:
[fc6-extras]
name = Fedora Extras - 6 - i386
baseurl = http://archive.kernel.org/fedora-archive/extras/6/i386/
enabled = 1
[code]....
then:
yum install grace --enablerepo=fc6-extras
After grace was installed with no errors, I ran:
yum update
Got this dependency problem and would like to know if there is a better solution to what I've done, especially with a hard coded baseurl in the repo file: gstreamer-plugins-bad-0.10.8-4.el5.rf.i386 from installed has depsolving problems --> Missing Dependency: libSoundTouch.so.0 is needed by package gstreamer-plugins-bad-0.10.8-4.el5.rf.i386 (installed)
View 9 Replies
View Related