?
Solved

HOW do I apply a patch to Solaris 7?

Posted on 2003-03-05
2
Medium Priority
?
295 Views
Last Modified: 2013-12-27
It seemed straightfoward enough. But, clearly I do not have any significant Solaris experience (I do have some other Unix experience).

I wanted to apply a sendmail patch (107684-08) to a Solaris 7 machine but failed. I was logged in as root. The "uname -a" cmd identifies the machine as SunOS 5.7 Generic_106541-07 sun4u sparc SUNW, Ultra-2.

Scenario:
(1) I downloaded the 107684-08 patch from one of the sunsolve.sun.com web pages and put it into the /var/sadm/patch directory.
I unzipped it which created a directory with the patch id as the name.

(2) This is the contents of the dir:
ls
README.107684-08   SUNWnisu/          SUNWsndmu/
SUNWcsr/           SUNWsndmr/         patchinfo*

(3) "Trying to install the patch:"

bash# patchadd ./107684-08

Checking installed patches...
rm: Cannot remove any directory in the path of the current working directory
/var/sadm/patch/107684-08
*/pkginfo: No such file or directory
One or more patch packages included in
107684-08 are not installed on this system.

Patchadd is terminating.

(4)After the failed attempt, the original directory had 0 contents.

(5) I tried to follow the README file's directions...
Please advise on how I can install this patch.


0
Comment
Question by:mcol323
2 Comments
 
LVL 2

Accepted Solution

by:
soupdragon earned 200 total points
ID: 8073350
/var/sadm/patch is the target directory used by Solaris to when using patchadd - hence it clears the 107684 directory before adding a patch.

To add a patch, untar your files into any other directory i.e. /tmp and add them from there. Patchadd will automatically install the patch into /var/sadm/patch.
0
 

Author Comment

by:mcol323
ID: 8074200
Thank you so much for your answer. It is so simple when you know how. Solaris is not so daunting after all.

I am grateful.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question