LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-03-2008, 12:33 PM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Is there a way to rebuild /var/pkg/* directories?


Hi.

I experienced some problems while trying to image-update from b93 to b94 and I thought some of the file pkg downloaded was broken. Since everytime I ran pkg image-update it seemed as though it was caching files somewhere, I had the (really) bad idea to clean /var/pkg.

Now pkg undestandably tells me that there's nothing to update in my image and reports:
Code:
enrico@solaris:~$ pkg list
NAME (AUTHORITY)                              VERSION         STATE      UFIX
SUNWipkg                                      0.5.11-0.94     installed  ----
entire                                        0.5.11-0.94     installed  ----
Is there a way to force pkg reinstall all the packages from build 93 (which are the installed one) to rebuild the information it needs and then proceed to an image-update or will I be forced to perform a fresh reinstall?

Thanks for your help,
Enrico.
 
Old 08-03-2008, 03:14 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What might work would be to build a equivalent system elsewhere, e.g. under VirtualBox, installing 2008.5 then upgrading to b94.

When you are done, try copying just the /var/pkg directory and see what happens ...
 
Old 08-04-2008, 08:23 AM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Thanks for the hint jlliagre.

When you say upgrade to b94 you mean b93? My system, despite pkg list output, has not been upgraded to b94. In case this was what you meant, how can I image-update to b93 instead of b94 (which is the revision the pkg repository is now synced with)?

Thanks,
Enrico
 
Old 08-04-2008, 08:28 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Yes. Upgrade to something as close as possible to what was the OS when you cleared the pkg directory. Same version and same set of packages.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
pam does not like my owner, group and date for /var/ftp. especially /var manis2008 Linux - Software 1 02-08-2008 07:36 AM
Changing ownership of directories; /var/log/messages questions Micro420 Linux - General 6 04-21-2006 08:39 PM
Starting from 0 - pkg by pkg Lopes Linux - Newbie 2 07-02-2005 01:42 AM
/var/ and /tmp/ directories puishor Linux - General 5 06-25-2005 08:36 AM
Root directories /tmp, /var, /etc ninmonkeys Linux - General 7 11-21-2004 01:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration