LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 10-20-2004, 03:18 AM   #1
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 98

Rep: Reputation: 16
Trouble installing patches


Let me start out by saying... I am a complete solaris noob. I have experience mostly with FreeBSD, but so far this is completely different!

I am installing Oracle10g. As per the instructions it said to (optionally) install a few patches. I downloaded the newest versions of those patches and attempted to install them... this is what I did.

Code:
#mkdir /var/spool/patch
#cp ~username/patches/* /var/spool/patch/
#unzip 112758-04.zip
    ... ... ...

#/usr/sbin/patchadd 112758-04

Checking installed patches...
One or more patch packages included in
112758-04 are not installed on this system.

Patchadd is terminating.
Note: this is the first patch I ever installed... This is a fresh install of solaris.

I looked in 112758-04/README.112758-04 - and it said "Install Requirements: None"


any tips?
 
Old 10-20-2004, 04:28 AM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
I googled for the patchadd man page.

Code:
-M patch_dir patch_id ... | patch_dir patch_list
           Specifies the patches to be installed. Specify patches
           to the -M option in one of the following ways:

           1. By directory location and patch number.

              To use the directory  location  and  patch  number,
              specify  patch_dir as the absolute path name of the
              directory that contains  spooled  patches.  Specify
              patch_id  as  the  patch  number  of a given patch.
              Specifying multiple patch_id's is recommended.

           2. By directory location and the name of a  file  con-
              taining a patch list.

              To use the directory location and a file containing
              a  patch  list,  specify  patch_dir as the absolute
              path name of the directory containing the file with
              a   list   of  patches  to  be  installed.  Specify
              patch_list as the name of the file  containing  the
              patches to be installed.
Note the part about the -M directory argument being a full path, i.e.
#/usr/sbin/patchadd -M /var/spool/patch/
12758-04
 
Old 10-20-2004, 04:42 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
Is Sun One Studio 8 installed on your server ?

Is it SPARC or x86 based ?
 
Old 10-20-2004, 06:26 AM   #4
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 98

Original Poster
Rep: Reputation: 16
hah! and the funny thing is that I read the man page, saw other people doing the -M thing yet I still didn't think I needed to do that.

Code:
#/usr/sbin/patchadd -M /var/spool/patch/112758-04

#
It worked that time w/ no problems


as far as Sun One Studio being installed, I honestly have no idea. This was a fresh install of sol 9 "sparc" using the 64bit kernel that I set up.. I didn't install anything extra, but I think I did the full install... so if thats included, then I probably have it.

here is my guess of how to see if Sun One is intstalled.
Code:
#pkginfo |grep -i one
system      SUNWasac                         Sun ONE Application Server Admin Client
system      SUNWascmn                        Sun ONE Application Server (common)
system      SUNWasdem                        Sun ONE Application Server Sample Applications
system      SUNWasman                        Sun ONE Application Server Manual Pages
system      SUNWasr                          Sun ONE Application Server (root)
system      SUNWasu                          Sun ONE Application Server (usr)
system      SUNWdtnsc                        Netscape Componentization Support for CDE
GNOME2      SUNWgnome-component              GNOME CORBA ORB and component framework - platform dependent files, / filesystem
GNOME2      SUNWgnome-component-devel        GNOME CORBA ORB and component framework - developer files
GNOME2      SUNWgnome-component-devel-share  GNOME CORBA ORB and component framework - developer files - platform independent, /usr/share
GNOME2      SUNWgnome-component-root         GNOME CORBA ORB and component framework - platform dependent files, / filesystem
GNOME2      SUNWgnome-component-share        GNOME CORBA ORB and component framework - platform independent files, /usr/share
system      SUNWicu                          International Components for Unicode User Files
system      SUNWicud                         International Components for Unicode Developer Files
system      SUNWicux                         International Components for Unicode User Files (64-bit)
application SUNWiqdoc                        Sun ONE Message Queue Javadoc and Examples
application SUNWiqfs                         Sun ONE Message Queue JNDI FS Provider
application SUNWiqjx                         Sun ONE Message Queue JAXM Client Runtime Package
application SUNWiqr                          Sun ONE Message Queue Root Package
application SUNWiqu                          Sun ONE Message Queue /usr Package
application SUNWiquc                         Sun ONE Message Queue Client Runtime Package
application SUNWiqum                         Sun ONE Message Queue JMS/SOAP Msg Transformer Runtime
application SUNWmc                           Solaris Management Console 2.1 (Server Components)
application SUNWmcc                          Solaris Management Console 2.1 (Client Components)
application SUNWmccom                        Solaris Management Console 2.1 (Common Components)
system      SUNWrmui                         Resource Management User Interface Components
system      SUNWtnfc                         TNF Core Components
system      SUNWtnfcx                        TNF Core Components (64-bit)
system      SUNWtnfd                         TNF Developer Components
application SUNWwbmc                         Solaris Management Console 2.1 (WBEM Components)
system      SUNWxwice                        X Window System Inter-Client Exchange (ICE) Components
I guess it is..? at there is a message queue and an Application server.
 
Old 10-20-2004, 06:48 AM   #5
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 98

Original Poster
Rep: Reputation: 16
damnit I know I spoke to soon..
I unzipped each patch and installed it, but its not showing up for some reason....

Code:
#cd /var/spool/patch
#unzip 113823-03.zip
... ...
#/usr/sbin/patchadd -p | grep 113823 
#/usr/sbin/patchadd -M 113823-03

#/usr/sbin/patchadd -p | grep 113823 
#/usr/sbin/patchadd -M /var/spool/patch/113823-03

#/usr/sbin/patchadd -p | grep 113823
i tried a few different ways here... now error message, but no patch either.
 
Old 10-20-2004, 07:32 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
Ratclaws, here are some comments:

- You do not need to use the "-M" option, which is, hum, optional.

- You only need to apply a patch if the piece of software the patch is intended is effectively present in your server, thus my question about Studio 8.

- There is a readme file bundled with the patch that describes its purpose and the concerned files. For that one, only three files:
<install_dir>/SUNWspro/prod/bin/ild
<install_dir>/SUNWspro/prod/bin/ildx
<install_dir>/SUNWspro/prod/bin/sparcv9/ild
are concerned, so if you can't tell if Studio 8 is there, just look if the /opt/SUNWspro/prod/bin/ild is present to know if the patch applies to your server, assuming /opt is the installation directory (it is by default).

- The readme file explain also how to install the patch.

- If you insist using the -M option, do it accordingly to what is described in its manual page, where the directory part and the patch name are separated by a space, and where the full patch id is required, not just its prefix: e.g.
patchad -M /var/spool/patch 106326-03
 
Old 10-20-2004, 07:46 AM   #7
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 98

Original Poster
Rep: Reputation: 16
As much as I now feel like an idiot now, that really did help.
I didn't really know why you were asking about Sun One at first, because it was the Oracle documentation that told me to apply the patch. I figured it would have mentioned if it was for something other then the base system.

thanks for pointing out the space before the patch number, I completely looked over that.. Several times too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Security Patches (for FC4) Linux31 Linux - Security 6 12-31-2005 11:31 PM
Installing Slackware Patches Vampirite Slackware 4 11-21-2005 09:13 AM
Fedora 4. downloading and installing patches? totallynewguy Linux - Software 3 08-20-2005 01:32 PM
installing patches doralsoral Linux - Software 5 01-05-2004 06:23 AM
Help on installing patches LinuxQuest01 Linux - General 1 07-17-2002 04:44 PM


All times are GMT -5. The time now is 11:59 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration