PDA

View Full Version : F12 Need Advice on sw installation


tasikputri
8th May 2010, 11:40 PM
Hi Friends,

I'm new in Linux and I'm still learning from u guys.

Previously, I'd installed my system with F10. Following some of friends in FedoraForum, I'd upgraded my system with fresh installation to F12.

Now, I want to install PostgreSQL and JBOSS in my system.
I want it to be installed in /Sal/PostgreSQL and /Sal/jboss for easy maintenance.

How do I specify Yum install to install the sw into the folder that i want.

If it is better to be installed in the standard directory(what is it- /etc??),
pls kindly advice and give me the pro's and con's.

TQ

Keldorn
9th May 2010, 10:37 AM
If you will install it via yum - there willn't be any problems with maintenance.
Also, package install files into several dirs. /etc is for configuration files .You can see what files are installed by running
rpm -ql packagename
(it will work only if package is already installed)

CSchwangler
9th May 2010, 11:02 AM

Most software in Fedora will be installed in the /usr directory. Why would you want to install software to a different directory? I guess with respect to updates, it will be less troublesome to stick with the default.

tasikputri
10th May 2010, 06:09 AM
If you will install it via yum - there willn't be any problems with maintenance.

Why would you want to install software to a different directory? I guess with respect to updates, it will be less troublesome to stick with the default.

It is for my own maintenance. I want to group all the sw related to my system altogether in one folder.

Most software in Fedora will be installed in the /usr directory. Why would you want to install software to a different directory?

Or is it possible in the /usr directory, I specify (before yum install the folder I want my related sw to be parked.

TQ in adv

markkuk
10th May 2010, 11:24 AM
If you want to use non-standard filesystem layout, you can't use the standard Fedora tools for maintaining your software packages. You must build everything from sources (http://www.linuxfromscratch.org/).

Keldorn
10th May 2010, 05:48 PM
If you want to use non-standard filesystem layout, you can't use the standard Fedora tools for maintaining your software packages. You must build everything from sources (http://www.linuxfromscratch.org/).
This is not true - he can create something like chroot environment using

yumdownloader --destdir=/tmp fedora-release
rpm --root /tmp -ivh --nodeps /tmp/fedora-release*rpm
yum install --installroot=/tmp postgresql
But i don't think that it will go far from default way.

tasikputri
11th May 2010, 12:43 AM
But i don't think that it will go far from default way.

Keldron....what do u mean? Is it possible for me to do it.
What do u suggest? Or better for me to stick with the default path.

I'm hoping for the best advice....hu...hu....:(I'm totally new in linux. For windows this can be done. I want to migrate my system for Windows to Linux.....

CSchwangler
11th May 2010, 07:28 AM
In my opinion, its better to stick with the default installation directories, since it will cause less trouble with future updates and if you plan to upgrade to a newer release.

Keldorn
11th May 2010, 08:25 AM
Keldron....what do u mean? Is it possible for me to do it.
What do u suggest? Or better for me to stick with the default path.

I'm hoping for the best advice....hu...hu....:(I'm totally new in linux. For windows this can be done. I want to migrate my system for Windows to Linux.....

I am agree withCSchwangler. The default path is the best variant for a maintance.
I have showed you how to do what you want without building packages from sources - but you will ned to run them in chroot inveronment. (It is not always easy and it is done for a security reasons, not for maintenance)
Aftrer you have installed application you should start them in chroot environment... something like
chroot /tmp /usr/bin/postgresql start

tasikputri
23rd May 2010, 01:53 PM
Hi guys.....sorry my my long silent. TQ for the advice.But when I try to download the sw I'm having this problem :
[root@sal /]# yum update
Loaded plugins: presto, refresh-packagekit
fedora | 2.9 kB 00:00
http://download.fedoraproject.org/pub/fedora/linux/releases/12/Everything/i386/os/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for fedora: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

Can I just copy repomd.xml from my other machine and replaced it on the machine that is having this update problem.

Keldorn
23rd May 2010, 02:04 PM
just do
yum clean all
yum update or whatever you want

tasikputri
24th May 2010, 04:39 AM
I'done that also.

yum clean all
yum clean dbcache
yum clean metadata

still the same prob arise. any ideas?????