CentOS 5 :: Create Repo And Wrong Path In Primary.xml.gz?

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


ADVERTISEMENT

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 View Related

CentOS 5 Server :: Cannot Create Local Fedora 13 Repo: PYCURL ERROR 6

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

General :: Move A File To Some Path And Create That Path When It Doesn't Exist?

Oct 8, 2010

I use this command:

Code:

find ./ -atime +360

to figure out the files that haven't been accessed since 360 days. The command above will return results like this:

Code:

/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc

I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:

Code:

mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext

But I want the executed command to create this path

Code:

/old-files/uploads/2010/02/

If it doesn't exist.

View 6 Replies View Related

OpenSUSE Install :: Wrong Digest Errors Using Packman Repo?

Oct 20, 2010

Trying to clean up my system having removed some factory repos so now I have the standard 4, update, oss, non-oss & packman. When updating and switchine to packman I get many Wrong Digest errors and when downloading many NO KEY messages.

What is the significance of the no key message. How can I renew keys from repo sites and what should I do about the Wrong Digest warnings?

View 2 Replies View Related

General :: Yum Repo Change Results In Mirror Path Errors

Mar 24, 2011

I just changed repos back to a standard CentOS base repo due to the custom one I was using needing https, and due to a proxy issue, only have http.When I run yum update, it finds that the path for the mirrors is off slightly giving me 404 errors.

View 7 Replies View Related

Debian :: Wrong Path When Trying To Run File

Oct 20, 2010

I try to run a file in a directory different that i am on now, and it tries to run it in my current dir, what can be the problem example: I try to run: /usr/bin/php /var/www/mydir/file.php and i get this error: The file /var/log/var/www/mydir/data/file.txt is not exists this file.txt is called from the script i try to run. I guess it might be something needed to be changed regarding to path settings, but really no idea if i am right and what i should do.

View 3 Replies View Related

Ubuntu Servers :: Postfix + Dspam Wrong Path For Digest Files

Apr 7, 2010

I am struggling to get dspam to work properly.

I have follow the instructions [URL] to the letter but when I send spam/ham to the ham@mydomain.net address I see a problem in the logs.

The problem appears to be that when dspam filters the mail it stores the digests in:

/var/spool/dspam/data/mydomain.net/<user>

But when it tries to find the digests to add them to the spam/ham database it looks in:

/var/spool/dspam/data/local/<user>

But I can not find anywhere in the config that controls this.

As I followed the instructions on the ubuntu forums I can not be the first person to see this problem.

logs:

Quote:

Apr 7 22:27:02 rat postfix/smtpd[19662]: connect from localhost[127.0.0.1]
Apr 7 22:27:02 rat postfix/smtpd[19662]: EAC8AE0B6A: client=localhost[127.0.0.1]
Apr 7 22:27:03 rat postfix/cleanup[19659]: EAC8AE0B6A: message-id=<0D3D54F4-4E18-4EE8-88F7-DE7D4B9A45C2@mydomain.net>

[Code].....

View 1 Replies View Related

Ubuntu :: Create A New Primary Partition?

Feb 25, 2010

i have 2 partitions. one with vista and the other with ubuntu. i would like to make another primary partition from the free space in my ubuntu partition. anyway to do this?

View 8 Replies View Related

Ubuntu Installation :: Not Possible To Create More Than 4 Primary Partitions?

Dec 1, 2010

I'm trying to install Crunchbang on a partition I made. I managed to resize my Ubuntu for space to install Crunchbang (which essentially is another Linux OS).I currently have Ubuntu 10.10 and Win7 currently installed. The error I get in GParted is the one above in the title. I know there is a way to install a third OS but this problem is killing me. I need some to help my step-by-step. I'm not that bright when comes to technical terms and writing stuff in the terminal. My current filing system:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

View 3 Replies View Related

OpenSUSE Install :: Configure Autoyast To Create Three Primary Partitions?

May 18, 2010

I'm trying to configure autoyast to create three primary partitions:

/dev/sda1 (/boot)
/dev/sda2 (swap)
/dev/sda3 (/)

This is the XML I've come up with:

HTML Code:
<partitioning config:type="list">
<drive>
<use>all</use>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">

[Code]....

I seem to be missing an instruction or misunderstand something here.

View 5 Replies View Related

Fedora :: Create Repo Cache Proxy?

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

CentOS 5 :: Installing CentOS-DS - Cannot Get To The Extras Repo Due To Lack Of Wired Sans Internet Access

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

CentOS 5 :: 5.3>5.4 Update Gave New CentOS-Base.repo.rpmnew?

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

Fedora Servers :: Cannot Create Local 13 Repo: Pycurl Error 6?

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

Red Hat / Fedora :: Change The Current Directory To Server And Then Create A Repo?

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

CentOS 5 :: Yum Repo Sorting (OR Yum's Insistence On Using Centos Mirrorlist)

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

CentOS 5 :: Repo Which Allow Latest Softwares In Centos Like Fedora?

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

OpenSUSE Multimedia :: Create A Local Repo For A Vlc By Downloading All The Required Packages?

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

General :: Create All Subdirectories Of A Path?

Dec 9, 2010

Is there an easy way to create all subdirectories of a path in linux ?

Something like

mkdir /a/b/c/d/e/f

executed in / should create directories a,b,c,d,e,f

View 2 Replies View Related

Ubuntu :: How To Create Path Statement

Aug 7, 2011

I have multiple drives and software that defaults to my primary drive. I want to change preferences to use my second drive.This is the current path "/home/guy/dvdrip-data" my second drive is named "2Internal".How do I properly format the path statement to use the second drive?

View 7 Replies View Related

Software :: Rpmbuild Does Not Create Lib64 In Correct Path?

May 13, 2011

I am trying to install OpenCV2.2.0 from the sources and to make it easier in the future I want to create a rpm on my OpenSuse 11.2 x86_64 platform. The instructions how to install are in the specfile The relevant parts of the specfile below:

Code:

---snipp
%prep
%setup
%build

[code]....

View 2 Replies View Related

Programming :: Create A ZIP In Perl Without Storing Path Information?

Mar 1, 2010

I have the following code snippet:

Code:

my $file = 'test/mybigfile';
my $zip = Archive::Zip->new();
my $zipped = $zip->addFile($file);

[code]....

it simply takes a file (in this case, "mybigfile") and creates a ZIP file containing that file only. Now, my problem is that when I go to decompress the ZIP file, it creates the relative (or absolute, depending on case) path of the original file. To make an example:

Code:

$ pwd
/tmp/perl
$ ls -R

[code]....

What I need is *not* to store the path information inside of the ZIP file, so that once I decompress the ZIP file I only get the original one without having paths created.

View 2 Replies View Related

CentOS 5 :: Error: Requested Datatype Primary Not Available

Aug 2, 2009

I get this error:

Error: requested datatype primary not available

# rpm -q centos-release
centos-release-5-3.el5.centos.1

None of the following actions fixed the error.

# yum clean all
# rm -f /var/lib/rpm/__db*
# rpm --rebuilddb

[Code]....

View 5 Replies View Related

CentOS 5 :: Setting Up As Primary Domain Controller

Aug 24, 2009

I have setup Ubuntu servers as LAMP machines but that's pretty much it.

I need to work on an existing CentOS server that I will see for the first time tomorrow. I am told that, as of right now, it is "just serving the internet." The goal is to set it up to be a primary domain controller by which I mean:

1) A user should be able to login to the server from any of the workstations and then see their server stored documents

2) The clients will be a mixed bag of Linux, Windows and Mac machines

I could use a push in the right direction as to what I need to do to get this all setup. I know how to setup users and home folders (I use webmin typically and I understand that there is a version for CentOS) but clearly there is more that I need to do. I am really curious as to how I would map the necessary drives on the client machines upon login and have the users have automatic access to their data regardless of the client machine they log in to.

View 4 Replies View Related

CentOS 5 :: RPM-BUILD: Installing Set Of Third Party RPM's From Primary RPM?

Dec 24, 2010

I built an RPM, which will copy set of files,executes scripts and install's third party rpms. but the thirdparty rpm's are not getting installed and throws the below warning warning: cannot get shared lock on /var/lib/rpm/Packages From my analysis, i understood that the primary rpm holds a lock and its unable to install the rpms packaged inside.

View 1 Replies View Related

CentOS 5 Server :: Can't Receive Emails - When Primary DNS Went Down ?

May 11, 2011

I'm wondering why we can't received email when our primary DNS went down. We have slave DNS but don't know why we can't receive emails. Internet is working properly. The mail file in /etc/configuration on slave dns are there & the zone file is added. I edited the mail zone file to see if it works & restarted the named service. But still we can't received emails using the slave DNS. Do I need to reboot the server?

View 12 Replies View Related

General :: Unable To Create A File In Specified Path In System / Enable This?

Jun 8, 2011

I am unable to create either a file or a directory in a specified path in Linux.
I am getting the error "No space left on device".
I have checked with df -k and df -i. Free disk space is 28 % and free inodes are 28 %.
What else could be the reason?

View 2 Replies View Related

CentOS 5 Networking :: Change The Primary Nic From Eth1 To Eth0?

May 7, 2009

Centos 5.3 How can I change the primary nic from eth1 to eth0? My board has 2 nic's and I'm having license issues with cpanel

View 2 Replies View Related

CentOS 5 :: Remount Second Hard Drive After Replacing Primary?

Jul 27, 2011

For starters, I apologize if this turns out to be a double post. My windows laptop hiccupped in the middle...

So I had a Linux box with two drives running happily for years. Both drives were in the same logical volume, and the second had a file system on it.

The the boot drive croaked. I replaced it and reinstalled CENTOS (making sure, of course, to be careful to use the new drive). The I put the second drive back into the volume group (and that's it).

I'm assuming I probably need to create a new logical volume, because that's how it was before, but I really really don't want to format it.

Am I missing a step or am I screwed?

Fsck -l showed the following output both before and after I put the drive in the volume group. code...

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved