Ask Your Question
0

how do I decide where 'yum install' will install something in F20

asked 2014-10-23 00:13:29 -0500

mohanprakash gravatar image

where does the 'yum install' install programs by default. Is there any way in which I can decide some other location to do so.

edit retag flag offensive close merge delete

Comments

just asked out of curiosity

mohanprakash gravatar imagemohanprakash ( 2014-10-23 00:14:46 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-10-23 03:38:53 -0500

liquidat gravatar image

As others have already mentioned, a classical relocation of packages which need to be installed is something which depends on each package - and is not encouraged in Fedora.

You can get close to what you want with the yum option "installroot":

--installroot=root

Specifies an alternative installroot, relative to which all packages will be installed.

However, please note that this option requires first of all all yum related configuration files below the new root (including yum.conf), and also that this option is more meant to be used for creating changeroot environments.

edit flag offensive delete link more
0

answered 2014-10-23 01:12:36 -0500

rsc gravatar image

Installing software via "yum" downloads RPM packages and installs them. The RPM package itself already contains the path where each file will be installed so you can not really (see last section) influence where something will be installed.

RPM packages by itself can be build a way that they support relocation however this is discouraged for various reasons for Fedora packages in general (also via policy).

The only way how you can influence the location of the installation as a non-packager somehow is by mounting a separate partition into /usr for example to ensure that whole /usr is e.g. on another partition or on another harddrive. I know this is likely not what you are expecting but this still influences the "where".

Aside of that you can not influence the "where" for "yum install" or RPM packages.

edit flag offensive delete link more
0

answered 2014-10-23 02:24:53 -0500

anishjp gravatar image

rpm -ql package_name will show you the location of some of the files after installation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-10-23 00:13:29 -0500

Seen: 600 times

Last updated: Oct 23 '14