pkgadd with admin fine (solaris 10)


 
Thread Tools Search this Thread
Operating Systems Solaris pkgadd with admin fine (solaris 10)
# 1  
Old 07-24-2011
pkgadd with admin fine (solaris 10)

Hi,
I am trying to install a simple gcc package on a sparc (solaris 10) machine using the admin file (called admtest), but it is not working. I am getting the "Select package prompt". Can anyone have a look at it and tell me what am i doing wrong.

Code:
[root@sol10 ~] # cat admtest 
mail=root
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=ask
setuid=nocheck
conflict=nocheck
action=nocheck
networktimeout=60
networkretries=3
authentication=quit
keystore=/var/sadm/security
proxy=
basedir=default
[root@sol10 ~] # ls -l | grep gcc
-rw-r--r--   1 root     root     1921536 Jul 27  2010 libgcc-3.4.6-sol10-sparc-local
drwxr-xr-x   3 root     root         512 Jul 24 15:12 SMClgcc346
[root@sol10 ~] # pkgadd -a /root/admtest -d ./libgcc-3.4.6-sol10-sparc-local 

The following packages are available:
  1  SMClgcc346     libgcc
                    (sparc) 3.4.6

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Thanks
Appreciate all the help
# 2  
Old 07-24-2011
either just press enter key or just input the number of package shown above . in this case is 1.
Simply press enter and it will proceed
# 3  
Old 07-24-2011
Pressing Enter would defeat the purpose of the entire exercise (automation)
# 4  
Old 07-24-2011
blank out mail ie mail= and try putting the admin file to the default location /var/sadm/install/admin. just run
Code:
# pkgadd -a admtest -d ./libgcc-3.4.6-sol10-sparc-local

happend to me when setting up public key authentication, confusion of the root home directory. just a hunch.
# 5  
Old 07-24-2011
You can try something like this:
Code:
echo "all" | pkgadd -a /root/admtest -d ./libgcc-3.4.6-sol10-sparc-local

This User Gave Thanks to bartus11 For This Post:
# 6  
Old 07-24-2011
Perfect, it works. Thanks bartus11
Just a note: Your method doesn't require the admin file, actually we are bypassing the problem. Moreover we need to created the /usr/local file manually if it doesn't exist, otherwise the installation will fail.

Last edited by Mack1982; 07-25-2011 at 02:15 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Pkgadd failures with Solaris 11

I have some simple package installations that have worked in previous versions of Solaris just fine. I can install the packages, then install newer versions right over the top without error. In previous versions I had to specify the -G option during the installation in order for this to work. ... (0 Replies)
Discussion started by: moondog25
0 Replies

2. Solaris

pkgadd will not install solaris studio 12.3

I downloaded Solaris 10 OS on x86, SVR4 installer to my desktop and ran digest -a md5 on the downloaded file and the hash values matched. I then ran bunzip2 followed by pkgadd -d SolarisStudio12.3-solaris-x86-pkg and am getting the following error: pkgadd: ERROR: attempt to process... (14 Replies)
Discussion started by: twk
14 Replies

3. Shell Programming and Scripting

Sed script not working properly on Solaris (works fine on AIX)?

Hi, I have a problem with a SED script that works fine on AIX but does not work properly on a Solaris system. The ksh script executes the SED and puts the output in HTML in tables. But the layout of the output in HTML is not shown correctly(no tables, no color). Can anyone tell if there is... (7 Replies)
Discussion started by: Faith111
7 Replies

4. Shell Programming and Scripting

Shell script runs fine in Solaris, in Linux hangs at wait command

HI, I have a strange problem. A shell script that runs fine on solaris. when i ported to linux, it started hanging. here is the core of the script CFG_FILE=tab25.cfg sort -t "!" -k 2 ${CFG_FILE} | egrep -v "^#|^$" | while IFS="!" read a b c do #echo "jobs output" #jobs #echo "jobs... (13 Replies)
Discussion started by: aksaravanan
13 Replies

5. Solaris

Variable not expanding during Solaris pkgadd

I'm having a little trouble with a Solaris package build/install. I have the following entries in my prototype file... # Interfaces file - all versions installed and auto linked to installation type... f none $OPTDIR/config/interfaces.DEV 0444 $OWNER $GROUP f none... (0 Replies)
Discussion started by: JerryHone
0 Replies

6. Solaris

pkgadd and setuid in admin file

Hi I am trying to automate the install of a package, I realise that I need to create an admin file, but as part of the install I am asked if I want to install these as setuid/setgid files, I want to say yes. What value am I supposed to use for setuid= in the admin file Thanks (1 Reply)
Discussion started by: eeisken
1 Replies

7. UNIX Desktop Questions & Answers

Solaris 10 - Compiling package from source? Different from pkgadd?

Hey everyone, I'm using a SPARC based Solaris 10 5/09 machine and want to install PHP support to it. I already have mysql and apache( came with OS, just started the proccess) installed, so this is the last thing before I can get to learning development :) However, there's something I'm not sure... (1 Reply)
Discussion started by: agummad
1 Replies

8. Solaris

pkgadd missing on Solaris 11

Hi, This is not a question thread, but rather a solution to an issue I have encountered on Solaris 11. It turns out that pkgadd is not available by default on Solaris 11. The solution is to install it with: pkg install SUNWpkgcmdsI hope this will save people some time. Cheers, ... (4 Replies)
Discussion started by: JVerstry
4 Replies

9. UNIX for Dummies Questions & Answers

pkgadd fails when installing Solaris 8 patches

Hi, guys ! I usually run this task without even thinking on outcome, because it never failed. But this time when I tried installation of patches for Solaris 8 OS on my old machine, I received this message: "pkgadd: ERROR: no packages were found in </var/spool/pkg>" I compared the contents... (5 Replies)
Discussion started by: Deicide5997
5 Replies
Login or Register to Ask a Question