?
Solved

HOW do I apply a patch to Solaris 7?

Posted on 2003-03-05
2
Medium Priority
?
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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 …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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

762 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