PDA

View Full Version : yum install and installroot questions


aldrichc
6th December 2006, 10:38 PM
I am a new yum user and have questions about its use:

I am trying to install Bugzilla in a webspace on my server. I use the following command to specify the installation directory for Bugzilla:

yum --installroot=/var/www/vhosts/website/httpdocs install Bugzilla

Q1) is this how I specify the installation location?

I get two messages:
Repository updates-released is listed more than once in the configuration
Repository base is listed more than once in the configuration

Q2) what configuration? yum.conf? yum repo locations?
Q3) are these warning or informational messages?

The following is displayed:

Setting up Install Process
Setting up repositories
http://update.onlinehome-server.info/fedora/linux/core/Null/i386/os/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Date: Wed, 06 Dec 2006 21:32:07 GMT
Server: Apache/1.3.33 (Debian GNU/Linux)
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.


Q4) what have I done wrong?

markkuk
6th December 2006, 11:21 PM
yum --installroot=/var/www/vhosts/website/httpdocs install Bugzilla

Q1) is this how I specify the installation location?
No. The install location is specified by the bugzilla RPM package. The package name is "bugzilla" with a small "b".

Repository updates-released is listed more than once in the configuration
Repository base is listed more than once in the configuration

Q2) what configuration? yum.conf? yum repo locations?
Q3) are these warning or informational messages?

Yum configuration consists of /etc/yum.conf and the .repo files in /etc/yum.repos.d. Remove the duplicate definitions to clear the warnings.



Setting up Install Process
Setting up repositories
http://update.onlinehome-server.info/fedora/linux/core/Null/i386/os/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Date: Wed, 06 Dec 2006 21:32:07 GMT
Server: Apache/1.3.33 (Debian GNU/Linux)
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.


Q4) what have I done wrong?
There's something wrong with your fedora-release package, yum can't correctly detect which FC version you are running. What does "rpm -q fedora-release" show?

Dies
7th December 2006, 12:18 AM

I'm no expert so please someone correct me if I'm wrong but I don't believe you can tell it where to install using an rpm unless you made it yourself.

--installroot=/var/www/vhosts/website/httpdocs appears to be equal to saying /var/www/vhosts/website/httpdocs=/ so yum assumes that it will find it's configuration files in /var/www/vhosts/website/httpdocs/etc/yum.repos.d which of course doesn't exist and that's why you see the error reading repodata.

But again those are just my thoughts and I may be way off, but I'll bet there's nothing wrong with yum.
If you run yum install bugzilla it should work just fine.

aldrichc
7th December 2006, 03:21 PM
rpm -q fedora-release returns 4-2. I have FC4 installed.

aldrichc
7th December 2006, 03:50 PM
Is there an option within yum to specific an alternate install directory - to override the directory specified in the rpm package? I thought that was what the --installroot option did?

intelligentfool
9th January 2007, 07:58 PM
this is the exact same thing i'm trying to do, only with MediaWiki. i'd love to setup a cron job to update mediawiki with yum, and i'm assuming that would require me to install it to /var/www/html/mediawiki, instead of the default /var/www/mediawiki. I guess i could reconfigure apache, but i'd rather just install it in a subfolder and keep apache the way it is. any help would be great.