accidentally remove the contents of /var/sadm/pkg


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers accidentally remove the contents of /var/sadm/pkg
# 1  
Old 01-02-2006
accidentally remove the contents of /var/sadm/pkg

Hi all,

I carelessly remove the contents of /var/sadm/pkg. I do not have any backup of the folder. What can I do ? Thanks a lot. Smilie
# 2  
Old 01-03-2006
I dont think that it will affect your daily working, but you won't be able to backout any patches and commands such as pkginfo may fail.
# 3  
Old 01-03-2006
U sure? but it is not the /var/sadm/pkg/save folder, is the entire /var/sadm/pkg....
# 4  
Old 01-03-2006
and how do you make those commands working again?? Thanks a lot
# 5  
Old 01-03-2006
Blowtorch is correct - your commands to show packages and patches won't work but the system itself should be okay.

Since you don't have a backup, another option may be to reload the latest patch cluster - one of the ways of saving space in /var is to remove old patches in order and then loading the latest version of the patch - you have, in a way, already removed the old patch info so now adding the latest patches should rebuild your /var/sadm/pkg directory. (note that this option may not put everything back into place but without a listing of what you had, this will get you started.)

Otherwise, the only other option is to rebuild from scratch (since you state you have no backup).
# 6  
Old 01-03-2006
Thanks RTM, however, when I tried to put in the latest patch cluster, it said that I do not have the latest dependcy patches on ths sytem and refused to add those patches on.. @_@
# 7  
Old 01-04-2006
Quite rightly too... the patchadd command will check for existing dependencies using something like pkginfo, which will in turn check in the /var/sadm/pkg directory. Maybe a scheduled downtime and a complete reinstall is in order?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to remove pkg from zone in newly created boot environment?

fyi, I already have SR opened with Oracle. We are looking to upgrade from S11.3 to S11.4 with the latest SRU. Create new BE; success Mount new BE; success pkg -R /mnt update the updating of the global went fine until it touched local zone. pkg: update failed (linked image... (2 Replies)
Discussion started by: samthewildone
2 Replies

2. Solaris

Contents deleted from /var/sadm

Hi, Somebody/somebody removed all contents /vat/sadm on Solaris 10 Sparc box. As of now server is up and running. There is no backup for this server. If we copy contents from another equivalent server, can it work ? We don't know if it will be fixed by booting form DVD also. Any suggestions? (4 Replies)
Discussion started by: solaris_1977
4 Replies

3. AIX

Prevent admin user accidentally remove database files.

Hi Folks, Any system admin did provide AIX file system control to prevent user/ admin accidentally remove database files ? Thanks. (4 Replies)
Discussion started by: ckwan
4 Replies

4. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

5. Solaris

Cleaning out /var/sadm/patch after Live Upgrade

I recently upgraded my OS to Solaris 10 10/09 from Solaris 10 06/06 using Live Upgrade. I wanted to clean up space in /var/sadm/patch. I'm assuming the server is now clean with a fresh version of Solaris 10 10/09. Can I safely remove everything in /var/sadm/patch? Thanks, jeremy (0 Replies)
Discussion started by: griff11
0 Replies

6. Solaris

Lost /var/sadm/install/contents file and /var/sadm/pkg

Hello, I recently found that my /var/sadm/install/contents, ~/admin/default, /var/spool/patch and /var/spool/pkg files were empty. This broke the pkginfo, pkgchk and other package related tools. The pkgmap no longer points to where the applications have been installed. I have replaced the... (0 Replies)
Discussion started by: ronin42
0 Replies

7. Solaris

Content of /var/sadm/pkc/<pkg>/save directory

Hi, What are the contents of /var/sadm/pkg/<pkg>/save directory. - It contains various patches with their id's. What does the "pspool" directory inside it contain? (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

8. Shell Programming and Scripting

Resolving Var to its contents

Hello everyone.... I am trying to dinamically create variable names and do resolution of this vars contents. After that is done I want to use (via a function call) the var and its contents by referring to it via the variable name. I am having a hard time achieving this .... can you help ? ... (5 Replies)
Discussion started by: gio001
5 Replies

9. Solaris

How to remove a pkg ,urgent!!

HI all, I would like to know, how we can remove a package? I know that pkgrm will do the job ,but specifying the right kinda package is important.. And i dont know how to figure that one out? Eg:if i have installed a pkg called virtualbox, If i do, pkgrm SUNWvirtualbox ,it says "no such file... (2 Replies)
Discussion started by: wrapster
2 Replies

10. UNIX for Dummies Questions & Answers

/var/sadm/install

Hi, can I delete the file install in /var/sadm directory because I do not need. Regard TDS (1 Reply)
Discussion started by: tinfoul
1 Replies
Login or Register to Ask a Question