03-28-2007
how to find the software packages and root directories
Hi all,
i have one requirement to audit the software packages list in unix server.
For this the i go through #pkginfo command.But there are lot of packages.
i get confused how to find the software packages and root directories paths.
Please let me know whether i am going correct way or wrongway.if going wrong way means please assist me this issue.
regards
Krishna
10 More Discussions You Might Find Interesting
1. AIX
Hi!
I am studying AIX documentation for creating software packages and there is one thing I cannot understand.
The docs (http://www.unet.univie.ac.at/aix/aixprggd/genprogc/pkging_sw4_install.htm) say that during installation of a package with the installp command, the control files of the... (1 Reply)
Discussion started by: maestro@altiris
1 Replies
2. AIX
Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in.
I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies
3. UNIX for Dummies Questions & Answers
I am trying to learn how compile programs using this lesson.
UNIX Tutorial Seven
I am stuck at 7.4 Configuring and creating the Makefile. It stats that I need to configure the utility with my home directory. After doing the echo $HOME command I get /home/Bill_Gates. It then says to insert... (6 Replies)
Discussion started by: jae99
6 Replies
4. Slackware
Hi!
Let me introduce a project for find and download Slackware packages and browse Slackware repositories.
The site provides following features:
* Large, daily updated database with RPM, DEB, TGZ, TXZ packages for well-known repositories of the Slackware, Fedora, CentOS, RHEL, Debian,... (2 Replies)
Discussion started by: lystor
2 Replies
5. HP-UX
Hi,
At my new company they use HP-UX on all the servers.
They use Serviceguard to provide different packages, which are treated as if they where seperate systems. Therefore people log into packages instead of Host, and even the home directories live in the package.
Now there are a different... (4 Replies)
Discussion started by: michas
4 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
Using grep command, i want to find the pattern of text in all directories and sub-directories.
e.g: if i want to search for a pattern named "parmeter", i used the command
grep -i "param" ../*
is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies
7. Solaris
what is the best way to identify non-packaged software installed on solaris systems? also after identifying the software is there a way to add some sort of package entry that will display the software even though it is not a package? (3 Replies)
Discussion started by: BronzeBack
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I noticed that my programs are not up-to-date, when I go to the official web site of eg. transmission bittorent client I see the newest version is 2.4 and when I check my version , it's 2.0. What do I need to do to update it? I thought it's gonna be updated automatically but nothing. I ran... (2 Replies)
Discussion started by: zdorian
2 Replies
9. AIX
Hi
I'm logged in to an AIX box now and we need to do an audit on this box.
cbssapr01:# pwd
/
Which command will show all the files and directories owned by root user with permissions as 777 ? (8 Replies)
Discussion started by: newtoaixos
8 Replies
10. Shell Programming and Scripting
I need to list users in /etc/passwd with root's GID or UID or /root as home directory
If we have these entries in /etc/passwd
root:x:0:0:root:/root:/bin/bash
rootgooduser1:x:100:100::/home/gooduser1:/bin/bash
baduser1:x:0:300::/home/baduser1:/bin/bash... (6 Replies)
Discussion started by: anil510
6 Replies
LEARN ABOUT POSIX
pkginfo
pkginfo(1) User Commands pkginfo(1)
NAME
pkginfo - display software package information
SYNOPSIS
pkginfo [-q | -x | -l] [-p | -i] [-r] [-a arch] [-v version] [-c category...] [pkginst...]
pkginfo [-d device] [-R root_path] [-q | -x | -l] [-a arch] [-v version] [-c category...] [pkginst...]
DESCRIPTION
pkginfo displays information about software packages that are installed on the system (with the first synopsis) or that reside on a par-
ticular device or directory (with the second synopsis).
Without options, pkginfo lists the primary category, package instance, and the names of all completely installed and partially installed
packages. It displays one line for each package selected.
OPTIONS
The -p and -i options are meaningless if used in conjunction with the -d option.
The options -q, -x, and -l are mutually exclusive.
-a arch Specify the architecture of the package as arch.
-c category Display packages that match category. Categories are defined with the CATEGORY parameter in the pkginfo(4) file. If more
than one category is supplied, the package needs to match only one category in the list. The match is not case specific.
-d device Defines a device, device, on which the software resides. device can be an absolute directory pathname or the identifiers
for tape, floppy disk, removable disk, and so forth. The special token spool may be used to indicate the default installa-
tion spool directory (/var/spool/pkg).
-i Display information for fully installed packages only.
-l Specify long format, which includes all available information about the designated package(s).
-p Display information for partially installed packages only.
-q Do not list any information. Used from a program to check whether or not a package has been installed.
-r List the installation base for relocatable packages.
-R root_path Defines the full path name of a directory to use as the root_path. All files, including package system information files,
are relocated to a directory tree starting in the specified root_path.
-v version Specify the version of the package as version. The version is defined with the VERSION parameter in the pkginfo(4) file.
All compatible versions can be requested by preceding the version name with a tilde (~). Multiple white spaces are replaced
with a single white space during version comparison.
-x Designate an extracted listing of package information. The listing contains the package abbreviation, package name, package
architecture (if available) and package version (if available).
OPERANDS
pkginst A package designation by its instance. An instance can be the package abbreviation or a specific instance (for example,
inst.1 or inst.2). All instances of a package can be requested by inst.*. The asterisk character (*) is a special character
to some shells and may need to be escaped. In the C-Shell, "*" must be surrounded by single quotes (') or preceded by a
backslash ().
EXIT STATUS
0 Successful completion.
>0 An error occurred.
FILES
/var/spool/pkg default installation spool directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
pkgtrans(1), pkgadd(1M), pkgask(1M), pkgchk(1M), pkgrm(1M), pkginfo(4), attributes(5)
Application Packaging Developer's Guide
SunOS 5.10 6 Nov 2000 pkginfo(1)