Help Me _How To Create An Oracle Linux / CentOS YUM Repository

Hello Experts,
I would like to create a server which can act as a YUM repository of Oracle Linux 6.5 and CentOS 6.5. Also I would like other servers to access this repo via http. I am stucked here to understand how I can bring all "RPMs" in to "/repo/OracleLinux/OEL6/current/x86_64" and always keep it updated. I would appreciate any help on this.
Thanks In Advance


Similar Content



Repo Syntax Issue Rhel/centos

Hello again,

i need to understand once for all the syntax of files.repo.

When i need a repository i create under /etc/yum.repos.d/ the repository file

goofy.repo

with this syntax

[repository_name]
[goofy]
baseurl=ftp:///mydirectory/myrepodir
gpgcheck=0

---
Myrepodir contains all the *.rpm files i need

when i exit and save i get anytime this error

Code:
ftp:///mydirectory/myrepodir/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repobase. Please verify its path and try again

What am i wrong for? How can i just say to my rhel/centos system
"Ehy, for rpm look inside /mydirectory/myrepo" ?

Thanks

Repo File Configuration For Rpmfind.net's Repository

Hi Linux Enthusiast..
Here is what i want to do..
I am currently using RHEL6 and I want to use rpmfind.net's repository for the software installtions.
But I really got very confused when i came to configure *.repo file for it ( for rpmfind.net's repository).
Can anybody please tell me what the baseurl string(or value) shuild be used for it in *.repo file.

Problem With Epel

Hello

I try to install the epel repository so I can install ejabberd.

I do not have epel, it seems :

Code:
[root@serv src]# ls /etc/yum.repos.d/
CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Vault.repo  n2.repo

So I try to install epel :

Code:
[root@serv src]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100]
	package epel-release-6-8.noarch is already installed

But when I try to install ejabberd :

Code:
[root@serv src]# yum install ejabberd
Loaded plugins: downloadonly, fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.nluug.nl
 * extras: ftp.nluug.nl
 * updates: ftp.nluug.nl
No package ejabberd available.
Error: Nothing to do

Something is wrong with epel.

Centos 7 - Yum Update Failed

"yum update" command is not working.
IP information and relevant details below:

-------------------------------------------------------------------------
Here is the error message :
yum update
Loaded plugins: fastestmirror, langpacks


One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:

yum-config-manager --disable <repoid>

4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64
------------------------------------------------------------------------
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.95 netmask 255.255.252.0 broadcast 192.168.11.255
inet6 fe80::20c:29ff:fe4e:58d9 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:4e:58:d9 txqueuelen 1000 (Ethernet)
RX packets 3498 bytes 356084 (347.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1525 bytes 212794 (207.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 22 bytes 2004 (1.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22 bytes 2004 (1.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
---------------------------------------------------------------------------

Steps taken so far :
1. Change to google DNS -->
2. Edited the CentOS-Base.repo file -->
3. Restarted network services -->

Literally I had search all over the place, till now i could not fix the issue.
Appreciate if someone come forward and help me to rectify this issue.

"Invalid Magic Number" When Loading Initrd Into GRUB Prompt Bootloader

Hi, I'm pretty new to Linux.

I'm currently working on a project in my Linux Administration class, but have run into a bit of a bump.

I'm tasked with booting Linux (currently using CentOS 7) through the GRUB prompt. I've loaded the kernel, but I'm having an issue with the initrd.

I've tried both of these commands:
"linux /boot/initrd-plymouth.img"
"linux /boot/initramfs-3.10.0-123.el7.x86_64.img"

Neither of these commands have worked. It only returns the message "invalid magic number" for both of the commands. Any ideas on how I can fix this?

Thanks for any help in advance. It should help me understand Linux better!

Yum Update Keeps Failing

[root@Laptop yum.repos.d]# yum install transmission*
Loaded plugins: langpacks, refresh-packagekit
adobe-linux-x86_64 | 951 B 00:00:00
fedora/20/x86_64/metalink | 17 kB 00:00:00
fedora | 3.8 kB 00:00:00
rpmfusion-free | 3.3 kB 00:00:00
rpmfusion-free-updates | 3.3 kB 00:00:00
rpmfusion-nonfree | 3.3 kB 00:00:00
rpmfusion-nonfree-updates | 3.3 kB 00:00:00
updates/20/x86_64/metalink | 13 kB 00:00:00
updates | 4.9 kB 00:00:00
http://mirrors.xmission.com/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.fdcservers.net/fedora/...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://fedora.osuosl.org/linux/updat...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirrors.rit.edu/fedora/fedora...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://repo.atlantic.net/fedora/linu...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
ftp://ftp.uci.edu/mirrors/fedora/lin...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.metrocast.net/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://linux.mirrors.es.net/fedora/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.cs.pitt.edu/fedora/lin...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.hmc.edu/fedora/linux/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.uoregon.edu/fedora/lin...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://fedora.mirrors.tds.net/pub/fe...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.nexcess.net/fedora/upd...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.web-ster.com/fedora/up...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
ftp://ftp.gtlib.gatech.edu/pub/fedor...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://www.gtlib.gatech.edu/pub/fedo...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.steadfast.net/fedora/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirrors.cat.pdx.edu/fedora/li...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://archive.linux.duke.edu/pub/fe...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirrors.kernel.org/fedora/upd...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirrors.syringanetworks.net/f...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://lug.mtu.edu/fedora/linux/upda...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
ftp://ftp.osuosl.org/pub/fedora/linu...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.cc.vt.edu/pub/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.pnl.gov/fedora/linux/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.redsox.cc/pub/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.symnds.com/distributio...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.unl.edu/fedora/linux/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
ftp://ftp.wallawalla.edu/pub/mirrors...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://fedora.bhs.mirrors.ovh.net/li...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://dl.fedoraproject.org/pub/fedo...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.cogentco.com/pub/linux...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirrors.tummy.com/pub/fedora....ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.clarkson.edu/fedora/li...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://ftp.linux.ncsu.edu/pub/fedora...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
http://fedora.mirrors.pair.com/linux...ta/repomd.xml: [Errno 12] Timeout on http://fedora.mirrors.pair.com/linux...ta/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
updates | 4.9 kB 00:00:00
http://mirror.ancl.hawaii.edu/linux/...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.
updates | 4.9 kB 00:00:00
http://kdeforge2.unl.edu/mirrors/fed...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
Trying other mirror.


One of the configured repositories failed (Fedora 20 - x86_64 - Updates),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:

yum-config-manager --disable updates

4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=updates.skip_if_unavailable=true

failu repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
http://mirrors.xmission.com/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.fdcservers.net/fedora/...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://fedora.osuosl.org/linux/updat...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirrors.rit.edu/fedora/fedora...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://repo.atlantic.net/fedora/linu...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
ftp://ftp.uci.edu/mirrors/fedora/lin...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.metrocast.net/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://linux.mirrors.es.net/fedora/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.cs.pitt.edu/fedora/lin...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.hmc.edu/fedora/linux/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.uoregon.edu/fedora/lin...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://fedora.mirrors.tds.net/pub/fe...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.nexcess.net/fedora/upd...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.web-ster.com/fedora/up...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
ftp://ftp.gtlib.gatech.edu/pub/fedor...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://www.gtlib.gatech.edu/pub/fedo...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.steadfast.net/fedora/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirrors.cat.pdx.edu/fedora/li...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://archive.linux.duke.edu/pub/fe...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirrors.kernel.org/fedora/upd...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirrors.syringanetworks.net/f...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://lug.mtu.edu/fedora/linux/upda...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
ftp://ftp.osuosl.org/pub/fedora/linu...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.cc.vt.edu/pub/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.pnl.gov/fedora/linux/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.redsox.cc/pub/fedora/l...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.symnds.com/distributio...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.unl.edu/fedora/linux/u...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
ftp://ftp.wallawalla.edu/pub/mirrors...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://fedora.bhs.mirrors.ovh.net/li...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://dl.fedoraproject.org/pub/fedo...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.cogentco.com/pub/linux...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirrors.tummy.com/pub/fedora....ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://mirror.clarkson.edu/fedora/li...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://ftp.linux.ncsu.edu/pub/fedora...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://fedora.mirrors.pair.com/linux...ta/repomd.xml: [Errno 12] Timeout on http://fedora.mirrors.pair.com/linux...ta/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
http://mirror.ancl.hawaii.edu/linux/...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
http://kdeforge2.unl.edu/mirrors/fed...ta/repomd.xml: [Errno -1] repomd.xml does not match metalink for updates
[root@Laptop yum.repos.d]#

What Does Core Mean

Hi All,
Can "CentOS Linux release 7.0.1406 (Core)" 64 bit be used for server to provide services such as web, ftp, mail etc. I meant to say whether it is stable and can be used for server. Because the previous versions was just as "CentOS release 5.10, CentOS release 6.2, CentOS release 6.4" and so on. Thanks for your kind reply.

Error:cannot Retrieve Repository Metadata (repomd.xml) For Repository: Fedora

Hi.
I am completely new in Linux and I'm trying to learn as much as I can while doing my job.

I am following directions from a wi-fi card vendor. In it, they require to download Fedora 13 to the laptop, which I have already done so. uname -a displays:
Linux localhost.localdomain 2.6.33.3-85.fc13.i868.PAE #1.

The directions ask to update the kernel with "yum install kernel-PAE". While connected to the internet, when I type that, the following error comes up:
Loaded plugin : presto, refresh-packagekit
Error: cannot retrieve repository metadata (repomd.xml) for repository: fedora
Please verify its path and try again

What does it mean and what file do I need to update with the right path? Please, let me know what other information you need.
Thank you very much

Linux Native Multipath IO Timeout

My Oracle RAC 12.1.0.1 runs on ASM. ASM has an I/O timeout of 15 seconds. How do I find my Linux native multipath I/O timeout? I am running RedHat Linux 6 Enterprise, x86-64.
This is the device section of my multipath.conf

devices{
device {
vendor "NETAPP"
product "LUN.*"
path_grouping_policy group_by_prio
getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
path_selector "round-robin 0"
path_checker tur
features "3 queue_if_no_path pg_init_retries 50"
hardware_handler "0"
prio ontap
failback immediate
rr_weight uniform
rr_min_io 128
rr_min_io_rq 1
flush_on_last_del yes
fast_io_fail_tmo 5
dev_loss_tmo infinity
retain_attached_hw_handler yes
detect_prio yes
}
}

Thanks,
keith

Starting Dhcp Failed

I am novice at linux...I installed VMware work station and then install centos 6.4. Now I followed this tutorial to configure DHCP Server on my OS http://tecadmin.net/configuring-dhcp...centos-redhat/
but when start dhcp I see this : Starting dhcpd:[FAILED]
This is my /etc/dhcp/dhcpd.conf

option domain-name "center.local";
option domain-name-servers master.center.local;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-search "center.local";
option domain-name-servers 192.168.1.100;
option time-offset -18000; # Eastern Standard Time
range 192.168.1.100 192.168.1.120;
}

host station1 {
option host-name "centos-1.center.local";
hardware ethernet 00:11:1A:2B:3C:AB;
fixed-address 192.168.1.101;
}

so what is wrong?Any suggestion?
Thanks for your help and sorry for my bad English grammar