LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   making a repo file for Yum (https://www.linuxquestions.org/questions/fedora-35/making-a-repo-file-for-yum-580245/)

nmansour 08-27-2007 04:03 PM

making a repo file for Yum
 
Hi,

I use Fedora on my ADM Athlon Machine (x86_64).
to be able to ssh to my work, I use a kerberozied version of ssh from "Scientific Linux Fermi" which is Basically RHEL5.
On usual 32bit machines, I have the .repo files with which I can add the files I need (openssh, open-clients, open-askpass, krb5-libs, krbafs, and some others) It is easy to do it because dependency is checked automatically.
On the new machine, I can not do that as I do not have the .repo file. I want to write it, so I can add the packages I want to my machine.
How may I do that (in steps if possible)?
The URLs for the SLF is:
ftp://linux1.fnal.gov/linux/slf5rolling/x86_64, and
ftp://linux.fnal.gov/linux/slf5rolling/x86_64

Thanks,

Noha

Lenard 08-29-2007 04:06 AM

Install the yum-conf-5x-1-3.SL.noarch.rpm package;
Code:

$ rpm -qlip yum-conf-5x-1-3.SL.noarch.rpm
Name        : yum-conf-5x                  Relocations: (not relocatable)
Version    : 1                                Vendor: Scientific Linux
Release    : 3.SL                          Build Date: Fri 27 Apr 2007 02:53:29 PM EDT
Install Date: (not installed)              Build Host: norob.fnal.gov
Group      : System Environment/Base      Source RPM: yum-conf-5x-1-3.SL.src.rpm
Size        : 3493                            License: GPL
Signature  : DSA/SHA1, Fri 27 Apr 2007 02:53:55 PM EDT, Key ID da6ad00882fd17b2
URL        : http://www.dulug.duke.edu/yum/
Summary    : RPM installer/updater config files
Description :
Configuration files to setup yum.conf and various repositories
Yum-conf-45 will only point to the release in 4x, which is always the
current stable release.
/etc/yum.conf
/etc/yum.repos.d
/etc/yum.repos.d/atrpms.repo
/etc/yum.repos.d/dag.repo
/etc/yum.repos.d/flash.repo
/etc/yum.repos.d/sl-debuginfo.repo
/etc/yum.repos.d/sl-srpms.repo
/etc/yum.repos.d/sl-testing.repo
/etc/yum.repos.d/sl5x-contrib.repo
/etc/yum.repos.d/sl5x-fastbugs.repo
/etc/yum.repos.d/sl5x-security.repo
/etc/yum.repos.d/sl5x.repo

If you do not want to install the package but want the files (or just some of them) then use rpm2cpio and cpio to extract the contents, for example;

rpm2cpio < sl-release-5.0-4.x86_64.rpm > sl.cpio
cpio -i -d < sl.cpio

See the man pages for both commands for the details.


All times are GMT -5. The time now is 05:57 AM.