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
PMDARPM(1)						      General Commands Manual							PMDARPM(1)

NAME
pmdarpm - RPM packages performance metrics domain agent (PMDA) SYNOPSIS
$PCP_PMDAS_DIR/rpm/pmdarpm [-C] [-d domain] [-l logfile] [-r path] [-U username] DESCRIPTION
pmdarpm is a Performance Metrics Domain Agent (PMDA) which extracts performance metrics reflecting the state of the RPM package database managed by rpm(1). The rpm PMDA exports metrics that describe each package installed on a system, as well as some cumulative totals. When the RPM database changes the PMDA automatically detects this and uses a background thread to asynchronously refresh its values. A brief description of the pmdarpm command line options follows: -C Verify the package iteration code by scanning the RPM database once, then exiting. Only useful for problem diagnosis and testing. -d It is absolutely crucial that the performance metrics domain number specified here is unique and consistent. That is, domain should be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts. -l Location of the log file. By default, a log file named rpm.log is written in the current directory of pmcd(1) when pmdarpm is started, i.e. $PCP_LOG_DIR/pmcd. If the log file cannot be created or is not writable, output is written to the standard error instead. -r Specify an alternate path to the RPM database (default is /var/lib/rpm/Packages). -U User account under which to run the agent. The default is the unprivileged "pcp" account. INSTALLATION
If you want access to the names, help text and values for the rpm performance metrics, do the following as root: # cd $PCP_PMDAS_DIR/rpm # ./Install If you want to undo the installation, do the following as root: # cd $PCP_PMDAS_DIR/rpm # ./Remove pmdarpm is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is installed or removed. FILES
$PCP_PMCDCONF_PATH command line options used to launch pmdarpm $PCP_PMDAS_DIR/rpm/help default help text file for the rpm metrics $PCP_PMDAS_DIR/rpm/Install installation script for the pmdarpm agent $PCP_PMDAS_DIR/rpm/Remove undo installation script for the pmdarpm agent $PCP_LOG_DIR/pmcd/rpm.log default log file for error messages and other information from pmdarpm PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). SEE ALSO
PCPIntro(1), pmcd(1), pcp.conf(5) and pcp.env(5). Performance Co-Pilot PCP PMDARPM(1)
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy