Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pkginfo question 1

Status
Not open for further replies.

Mag0007

MIS
Feb 15, 2005
829
US
I have an important package I want to preserve when I do a reinstall of a system...

How do I list the files in a package? I want to tar these files up...


 
You can try this: Not sure if it is going to do what you want. I tried it on a 3rd party package and it seemed to work.

cat /var/sadm/install/contents | grep <Package Name>
 
okay..is there a way for me to preserve my packages? I don't have the install media for it.
 
Mag0007,
May-be someone else knows better... I do not think there is any way to preserve a package during an OS installation. I know you can preserve data like /usr/local. When you install packages, files are distributed through out the Solaris File System "/opt /kernel /usr /etc". It would be impossible to preserve.
 
Hi,

if you know the name of the package, you can do:
pkgchk -v PKGNAME

for example:

pkgchk -v SMCrsync
/usr/local/bin
/usr/local/bin/rsync
/usr/local/doc
/usr/local/doc/rsync
/usr/local/doc/rsync/COPYING
/usr/local/doc/rsync/INSTALL
/usr/local/doc/rsync/NEWS
/usr/local/doc/rsync/OLDNEWS
/usr/local/doc/rsync/README
/usr/local/doc/rsync/TODO
/usr/local/doc/rsync/csprotocol.txt
/usr/local/doc/rsync/doc
/usr/local/doc/rsync/doc/README-SGML
/usr/local/doc/rsync/doc/profile.txt
/usr/local/doc/rsync/doc/rsync.sgml
/usr/local/doc/rsync/rsync3.txt
/usr/local/doc/rsync/rsyncsh.txt
/usr/local/doc/rsync/tech_report.tex
/usr/local/man
/usr/local/man/man1
/usr/local/man/man1/rsync.1
/usr/local/man/man5
/usr/local/man/man5/rsyncd.conf.5

You can then pipe the output to a file, and use the file as input to tar. You could then untar the archive on the new system but, remember that there are no guarantees. Unpacking the TAR on the new system is not the same as installing the package.

-Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top