11-06-2009
Normally rpm needs to run as root for packages to be installed, and other functions to be performed. It may allow some other functions to work which generally have read-only effect (for example a user may be able to list what packages are installed). If you want to prevent the user from running it, change the permissions of the executable file. If you want to let the user run it but hide the output, move rpm to another location/name, and put in its place a script that runs it at that new location/name using output redirection. For partial hiding, do the script with the output piped to a program that can filter it as desired (sed, awk, whatever).
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a Solaris 2.6 box flagging an "Error block: 308918" in the messages file when I execute a pkginfo -l. pkginfo with no flags returns no errors. I think I need to use format to mark this block and then restore the database used by pkginfo for backup. Any advice/input welcome.
Thanks (4 Replies)
Discussion started by: 98_1LE
4 Replies
2. UNIX for Dummies Questions & Answers
Env: Mdk 8.1
I downloaded the kernel-source-2.4.8-26mdk.i586.rpm
from mandrake. When i try to 'pm -Uv' it, i get an error
that i need to install ncurses-devel. The ncurses that is installed
with mdk 8.1 is ncurses-5.2-16mdk.i586.rpm and the development version that is avail is... (2 Replies)
Discussion started by: progressdll
2 Replies
3. Linux
Hi,
I have built one RPM last year. now we have another version of that RPM. in previous release we had few extra files then now. so when user upgrade it those files get deleted by RPM package. We want to retain those files.
now for workaround i thought of backing up those file during... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies
4. Solaris
im looking for a way to eliminate the packages from SUN when i do a pkginfo. thought this would work, but no luck.
pkginfo | grep
what am i doing wrong?
Thanks (2 Replies)
Discussion started by: jrich523
2 Replies
5. Shell Programming and Scripting
How to make RPM not write to RPM database if RPM fails to deploy?
IE I create an rpm spec file that contains the following
if
then
exit 1
fi
My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies
6. Fedora
Hi Guys,
Where would i find the list of distribution codes.
For example.
samba-32bit-3.4.2 -1.1.3.1.x8664.rpm
In above rpm file it is indicated that its release is 1.1.3.1 .
The rpm is meant to be run for opensuse.
Where would i get the linking of release number and distribution.
... (2 Replies)
Discussion started by: pinga123
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Using Redhat version 6.0, I need nmap so I have downloaded. But it requires many other dependencies, when I try to install it. See below err.msg. Is there any other way to get this installed, or I need to download each of the dependencies.
rpm -Uhv nmap-5.51-2-mdv2011.0.x86_64.rpm... (3 Replies)
Discussion started by: samnyc
3 Replies
8. Shell Programming and Scripting
Hi all,
Pls provide your suggestions and advice for the below queries. I have a files like below sample
$ ls -l /u01/app
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test1
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test
-... (1 Reply)
Discussion started by: kamauv234
1 Replies
9. Solaris
hello all
I am trying to create a comma seperated file of the pkginfo command. The follwoing works pretty well.
pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' ORS=', '
however, there are two issues.
1, For some reason it does not load into excel properly. It loads as... (7 Replies)
Discussion started by: busi386
7 Replies
10. AIX
On Solaris 10 i use pkgutil,very nice,update like "apt-get"
On HPUX i use depothelper for resolv depends
On AIX there is something similar for use rpm?
I try this but is not the same thing.
AIX Open Source Packages | FAQs / FAQs (Frequently Asked Questions) (1 Reply)
Discussion started by: Linusolaradm1
1 Replies
LEARN ABOUT CENTOS
pmdarpm
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)