Sponsored Content
Operating Systems Linux Red Hat Local installation of package in Red Hat / Fedora Linux Post 303011493 by drysdalk on Friday 19th of January 2018 03:18:18 AM
Old 01-19-2018
Hi,

Firstly, not all RPM packages support re-location. The package maintainer has to have designed the package to permit this. Typically many do not, since the software in the package has been compiled with a particular installation path in mind. But if your package is re-locatable this should be fairly simple, and doable with a command like:

Code:
rpm --prefix=/path/to/new/root/ -ivh package.rpm

This would install the package package.rpm underneath the directory /path/to/new/root/, as opposed to underneath / as normal.

If your package is not re-locatable, then you could always just convert the RPM to a cpio archive and manually extract it. Create a directory to extract the contents in, move your RPM in there, and do something like:

Code:
rpm2cpio package.rpm | cpio -div

This would extract the cpio archive inside the RPM underneath the current working directory. Note that of course this is just going to extract the software and you will ultimately have hte same problem - if the package is not meant to be re-located to somewhere else, it's not going to work in a new location.

If you absolutely need to re-locate a package that's not re-locatable, then you could always download its source code and configure it with your desired installation prefix, and compile and install it there.

Hope this helps.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

red hat linux installation boot floppy disk

Hi, My dear friends, I am trying to install red hat linux. I have downloaded its disc1. On the instructions page, the next stage is to make the boot disk, so that I can boot from the floppy. However, I am unable to locate the boot image iso file. I tried on google, but I got a few files which... (3 Replies)
Discussion started by: linuxpenguin
3 Replies

2. Linux

Installation Problem on Red hat linux 9

Hi, I am trying to install our new acquired Red Hat linux 9 on Compaq Proliant ML370. However, l has already configured the raid 0+1. The linux installation starts from the CD, its allows for the selection of Language, keyboard but l am stocked at choosing the installation package media. I... (4 Replies)
Discussion started by: kayode
4 Replies

3. UNIX for Dummies Questions & Answers

Problem Red Hat 9 Installation

I have a problem with a red hat 9 install on a compaq laptop. I installed the OS and everything tests ok but It boots to a blank screen instead of the GUI login I wanted. What can I do to correct this instead of installing all over. I tried the rescue option several times and tried to run... (2 Replies)
Discussion started by: vedder191
2 Replies

4. Red Hat

The Red Hat Cluster Manager Installation and

Linux RedHat Cluster Manager InstallationAdministrationGuide (0 Replies)
Discussion started by: merlin
0 Replies

5. UNIX Desktop Questions & Answers

Does Red Hat Fedora support Nvidia card 8800GTX and 260 card?

Does Red Hat Fedora support Nvidia card 8800GTX and 260 card? Does any Linux OS support Nvidia card? (1 Reply)
Discussion started by: sito
1 Replies

6. Red Hat

Installation of Red Hat enterprise edition?

HI All I am new to lunix operating system.I Wnt to move to Lunix.So would u pepole please tell me the documentatiion for installation os lunix on my personal computer Thamnks&Regards, I.venu. (1 Reply)
Discussion started by: infovenu231
1 Replies

7. Red Hat

download package for red hat linux 5

I try to do virtual guest in red hat linux 5. But I have no red hat netowrk account . I want to download below package xen kernel-xen package So, where I can get them ?? Any advice ??? (9 Replies)
Discussion started by: chuikingman
9 Replies

8. Red Hat

Fedora or Red Hat Man Pages

Is there a website that has either the Fedora or Red Hat Man Pages? Something similar to this with Ubuntu? Ubuntu Manpage: Welcome (4 Replies)
Discussion started by: cokedude
4 Replies

9. Red Hat

Does Red hat linux 9 has audit rpm package?

Dear All I have a old system run in Red hat Linux 9.. And if it's possible, I want to install the audit rpm package in the Red hat Linux 9. But I can't find the audit-*.rpm file in the Red hat Linux 9's CD..? Can any help me to conform Red hat Linux 9 doesn't support audit? Any... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

10. Red Hat

Red Hat 6 yum install no package availiable

I have installed Red Hat Enterprise Linux 6.1 server, it is registered but not subscribed. If I install using yum every time it is showing that no package available, how to resolve it? (2 Replies)
Discussion started by: ainstin
2 Replies
scap-as-rpm(8)						  System Administration Utilities					    scap-as-rpm(8)

NAME
scap-as-rpm - manual page for scap-as-rpm DESCRIPTION
usage: scap-as-rpm [-h] [--pkg-name PKG_NAME] [--pkg-version PKG_VERSION] [--pkg-release PKG_RELEASE] [--pkg-summary PKG_SUMMARY] [--pkg-license PKG_LICENSE] [--pkg-scap-location PKG_SCAP_LOCATION] [--rpm-destination RPM_DESTINATION] [--srpm-destination SRPM_DESTINATION] FILE [FILE ...] Takes given SCAP input(s) and makes an RPM package that contains them. The result RPM can be installed using # yum install ./pack- age-name-1-1.rpm which will put the contents into /usr/share/xml/scap. No dependency on openscap or scapworkbench is enforced in the output package so you can use any SCAP-capable scanner to evaluate the content. positional arguments: FILE List of files that should be put into the result package. These should be SCAP XML files but such requirement is not enforced. optional arguments: -h, --help show this help message and exit --pkg-name PKG_NAME Name of the RPM package, if none is provided the basename of the first SCAP input is used. Ex.: xyzsecurity-guide --pkg-version PKG_VERSION --pkg-release PKG_RELEASE --pkg-summary PKG_SUMMARY Optional short description of the package. --pkg-license PKG_LICENSE Short name of the license that you want to publish the package under. Ex.: GPLv2+, BSD, ... --pkg-scap-location PKG_SCAP_LOCATION Folder where SCAP files are supposed to be installed. Each package will have its own folder inside this folder. RPM variables can be used and will be expanded as usual. It is recommended to keep the default settings. --rpm-destination RPM_DESTINATION The folder (absolute or relative to CWD) where the result RPM shall be saved. --srpm-destination SRPM_DESTINATION The folder (absolute or relative to CWD) where the result SRPM shall be saved. scap-as-rpm November 2013 scap-as-rpm(8)
All times are GMT -4. The time now is 04:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy