09-17-2011
Command to list or view the files in .pkg (solaris) and how to extract without installing
In Linux for .rpm
we can list or view the files using the command
rpm -qpl <file.rpm>
and to extract, the command is
rpm2cpio <file.rpm> | cpio -idvh
I would like to know the commands which has same functionality as above for solaris ( .pkg)
Thanks in Advance
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
Does anyone have check list of installing solaris 9?
I will be installing solaris 9 on Sun Fire V880 .
Please help me.
Thanks (8 Replies)
Discussion started by: sriny
8 Replies
2. Shell Programming and Scripting
Hi,
Can you help me in providing me a command to view all files present in a directory.
Thanks a lot.
-Vamsi (1 Reply)
Discussion started by: VamsiVasili
1 Replies
3. Shell Programming and Scripting
Hi,
Can u provide me the command to view files in a directory.Urgent Pls.
-Vamsi (4 Replies)
Discussion started by: VamsiVasili
4 Replies
4. AIX
Hi,
I am new to AIX, I have to install HP Open View on AIX OS and I would appreciate if anyone can guide me how to install it step be step, any pointer in the direction would also help.
I thank all in advance ! (1 Reply)
Discussion started by: Rookie_newbie
1 Replies
5. UNIX for Dummies Questions & Answers
Hi
Howto view gzipped files with name file.gz.$DATE on a Solaris box (without unzipping first)
$ ls -lrt
total 4477
-rwxrwxr-x 1 oracle dba 569745 Apr 4 19:45 4_person2profileCon.txt.gz.04.04.11*
-rwxrwxr-x 1 oracle dba 3783 Apr 4 19:45... (4 Replies)
Discussion started by: slashdotweenie
4 Replies
6. Solaris
Hi all,
Could please guideas how to extract SUNWexplo.7.2.pkg & SUNWexplu.7.2.pkg from install_stb.sh.
I need to upgrade my Sun Explorer to 7.2 version from 7.1 .
This what written in read me file about its installation:
The Lightweight Availability Collection Tool (LWACT) is no... (1 Reply)
Discussion started by: manalisharmabe
1 Replies
7. Solaris
Hi Solaris Experts,
The pkg utility on one of my non-global zones has stopped working, it's trying to connect to port 1008 at pkg.oracle.com
I was using pkg successfully from this zone, but now it's showing this error: lzone1 $ pkg search xterm
pkg: Some repositories failed to respond... (4 Replies)
Discussion started by: ad101
4 Replies
8. Shell Programming and Scripting
Hi all,
this is my first and i can't speak english well, so please be kind !
Here is my problem :
I want to unzip a list of .zip files stored in one directory, so I though about using that : unzip '*.zip'
Thing is that all of my zipped folders contain a file with the unique same name :... (6 Replies)
Discussion started by: remissssss
6 Replies
9. Solaris
This is the operating system im using
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
I need to install some packages by setting local repository
While i run the below command
# pkg publisher
command returns bash: pkg: command not found
while looking for /usr/bin/pkg i get bash:... (2 Replies)
Discussion started by: babinlonston
2 Replies
10. Solaris
I'm trying to sync/transfer files from my UNIX box and Android Phone and vice versa.
I know that Android Phones show up seamlessly (mostly) in Linux given their incestuous relationship.
Is there a way to do it in UNIX or more specifically in Solaris 11.3 (i86)?:confused:
I haven't found one... (2 Replies)
Discussion started by: Nostradamus1973
2 Replies
rpm2cpio(1) User Commands rpm2cpio(1)
NAME
rpm2cpio - convert Red Hat Package (RPM) to cpio archive
SYNOPSIS
rpm2cpio [file.rpm]
DESCRIPTION
The rpm2cpio utility converts the .rpm file specified as its sole argument to a cpio archive on standard output. (See NOTES.) If no argu-
ment is given, an rpm stream is read from standard input. In both cases, rpm2cpio will fail and print a usage message if the standard out-
put is a terminal. Therefore, the output is usually redirected to a file or piped through the cpio(1) utility.
EXAMPLES
Example 1: Converting an rpm file
example% rpm2cpio Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
Example 2: Converting from standard input
example% rpm2cpio < Device3Dfx-1.1-2.src.rpm | cpio -itv
CPIO archive found!
-rw-r--r-- 1 root root 2635 Sep 13 16:39 1998, 3dfx.gif
-rw-r--r-- 1 root root 11339 Sep 27 16:03 1998, Dev3Dfx.tar.gz
-rw-r--r-- 1 root root 1387 Sep 27 16:04 1998, Device3Dfx-1.1-2.spec
31 blocks
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrpm |
+-----------------------------+-----------------------------+
SEE ALSO
cpio(1), attributes(5)
NOTES
rpm2cpio handles versions 3 and 4 RPMs.
SunOS 5.10 20 Aug 2001 rpm2cpio(1)