Pkgadd / gnutar


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Pkgadd / gnutar
# 1  
Old 08-04-2003
Pkgadd / gnutar

I have sucessfully installed GNUtar using pkgadd but with some questions:

When I tried to install with pkgadd -d GNUtar (which is the directory of the package) - I received the error "pkgadd: command not found"

Then I tried the same but with pkgadd -d. GNUtar and it installed fine. (found example on net and tried)

What did the "." do and where can I find info on this? Why wouldn't it install without the "."?


Part 2:

Now that I have GNUtar installed, I'm trying to untar CNR (Cisco Network Registar File) and it says that GNUtar must be used and not Solaris tar. (I think solaris tar truncates long file names?)

I installed GNUtar as root (didn't know if that was correct).

Now I think I have to add to path /usr/local/bin BEFORE /usr/bin for GNUtar to work.

How do I (and should I) add this path. (I was reading that you should not edit root's path??) I was thinking of creating a user e.g. CNRadmin and edit the .cshrc file using vi, adding /usr/local/bin path before /usr/bin. Then gtar file as this user and install program as this user.


If root does not have this in it's path then how do I run gtar as a one time command(syntax)?

Don't know what is the practiced or correct method...Please help because I would like to start learning the correct way and build on that (since this is basic).

Thanks for any and all replies.
# 2  
Old 08-04-2003
Quote:
Then I tried the same but with pkgadd -d. GNUtar and it installed fine. (found example on net and tried)

What did the "." do and where can I find info on this? Why wouldn't it install without the "."?
From the man page for pkgadd:
DESCRIPTION
pkgadd transfers the contents of a software package from the
distribution medium or directory to install it onto the sys-
tem. Used without the -d option, pkgadd looks in the default
spool directory for the package (var/spool//pkg).

So, anytime you are doing a pkgadd and the package isn't in /var/spool/pkg, you have to specify where it is - which you did the second time with '.'.


2nd part - you can add that to your path at the end with no problem (correct, root's path should not be changed but /usr/local/bin is one that many folks use - the one thing you never want to add to root's path is . ) You can do this by looking at the .profile in root's home directory and seeing if the PATH is set there - if not, you can set it if root's shell is sh or ksh with
MANPATH=$MANPATH:/usr/local/bin
export MANPATH

Running gtar just once, add the full path to the command :

# /usr/local/bin/gtar options yourtarfile
# 3  
Old 09-11-2003
Help

I did this before but have forgot..........................

I have installed gtar sucessfully....as before but have forgotten how to gtar a file. It gives the following error:

/usr/local/bin/gtar -zxpf cnr_5_5_10-solaris.gtar.gz

gzip: stdin: not in gzip format
/usr/local/bin/gtar: Child returned status 1
/usr/local/bin/gtar: Error exit delayed from previous errors


(platform - Solaris 9/64 bit/GNUtar sol -64 bit ver)

had a hard time doing it last time and never recorded how I did it. Please help. (gtar in path)
# 4  
Old 09-12-2003
Re: Help

[QUOTE]Originally posted by finster
[B]

I have installed gtar sucessfully....as before but have forgotten how to gtar a file. It gives the following error:

/usr/local/bin/gtar -zxpf cnr_5_5_10-solaris.gtar.gz

gzip: stdin: not in gzip format
/usr/local/bin/gtar: Child returned status 1
/usr/local/bin/gtar: Error exit delayed from previous errors



I think you have to 'gunzip' (gnu unzip) the file before untarring it, so try this.

gunzip cnr_5_5_10-solaris.gtar.gz

after doing this you will have a file named "cnr_5_5_10-solaris.gtar" and you will lose your original .gz file. Then try untarring "cnr_5_5_10-solaris.gtar"

tar -vxf "cnr_5_5_10-solaris.gtar"


I hope this will work.
# 5  
Old 09-15-2003
Thanks this worked.....

well, I did modify it slightly...

The installation guide said to :

gtar -zxpf <distribution file name>


gunzip cnr_5_5_10-solaris.gtar.gz

after doing this "cnr_5_5_10-solaris.gtar"


Then I left off the "-z" switch (unzip).

gtar -xpf cnr_5_5_10-solaris.gtar

It seemed to work ....

Just wondering why the -z switch did't work (supposed to unzip and then tar.............(according to installation manual - 1 command -----gtar -zxpf <distribution file name>)??


thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Pkgadd issue

Good Afternoon, I have 3 video driver packages in a directory that need to be installed. on a SunBlade 2500 running Solaris9. When I try running pkgadd -d /Recovery/CloneDrivers/SUNWpfbcf for example, I get pkgadd: ERROR: no packages were found in </var/spool/pkg> Permissions are 755, owner... (3 Replies)
Discussion started by: Stellaman1977
3 Replies

2. Solaris

Pkgadd with firefox

I am using Solaris 10, and trying to keep a number of old Sun workstations running. Since version 17 of firefox, I have had problems using pkgadd, and had to use tar to un-archive the components of firefox. Is this just a problem with firefox (and probably thunderbird), or is pkgadd broken (1 Reply)
Discussion started by: jkoval
1 Replies

3. Solaris

pkgadd changes permissions of /etc

Hi, when I install a package using pkgadd, it correctly installs the binary files with the user name that I want. However it also changes the permissions of /etc/rc2.d. I don't want this to happen. I want to retain original owner of /etc/rc2.d as it is. I could see that before installing,... (1 Reply)
Discussion started by: funwithdolphin
1 Replies

4. Solaris

Pkgadd error

Hi All, Good Mng,Here I am getting one error while adding the top package to one of my Aun server. root@HYDREM01 # pkgadd -d top-3.6.1-sol9-sparc-local The following packages are available: 1 SMCtop top (sparc) 3.6.1 Select package(s) you wish to process (or... (6 Replies)
Discussion started by: lbreddy
6 Replies

5. Solaris

pkgadd woes

Morning all, I am attempting to load a package from a Solaris 8 CDROM. This fails with the error : "pkgadd: ERROR: unable to access pkgmap file </cdrom/ .........../SUNWlibC/pkgmap> No changes were made to the system" Any help would be appreciated Andy (6 Replies)
Discussion started by: AndyD
6 Replies

6. Solaris

pkgadd?

Hi all. Is there an option to #pkgadd to test if package bundle you want to install requires a reboot? #pkgadd -d "package bundle" an option like test or a dry run? Suggestions, anyone? :confused: Reloader (2 Replies)
Discussion started by: Reloader
2 Replies

7. Solaris

pkgadd help

I'm trying to install a package and it worked on most of the sun boxes and one of the box is just freezing and not going further. Her is the output. pkgadd -d packagename.dstream Select package(s) you wish to process (or 'all' to process all packages). (default: all) : Processing... (1 Reply)
Discussion started by: mokkan
1 Replies

8. Solaris

pkgadd

is there an option in pkgadd to accept the default option? I want to use pkgadd in a script and do not want to stop at intercative questions. thx. (6 Replies)
Discussion started by: melanie_pfefer
6 Replies

9. UNIX for Dummies Questions & Answers

pkgadd

I am adding gcc 3.3.2 to my unix box what is the best way to do it???? (4 Replies)
Discussion started by: alsande
4 Replies

10. UNIX for Advanced & Expert Users

GNUTAR exclude directories

Hi, Can anyone help me with the following: I want to make a backup from my (AIX) system. But I don't want to backup a couple of temp-directories. I tried it with the X-option, but that didn't work. I hope that someone can help me. Thanks in advance. Corine (6 Replies)
Discussion started by: TheBlueLady
6 Replies
Login or Register to Ask a Question

Featured Tech Videos