Recover Solaris 11 pkg database


 
Thread Tools Search this Thread
Operating Systems Solaris Recover Solaris 11 pkg database
# 1  
Old 08-20-2015
Wrench Recover Solaris 11 pkg database

Hi,

I was messing with pkgsrc and wanted to start fresh so I manually deleted the /var/pkg directory on Solaris 11 Smilie (of course I was supposed to delete the /var/db folder instead)...

Anyways... I've basically bricked the Solaris11 Package Manager. Do you know if there is any way to recreate the /var/pkg database without doing a full format? I've had no luck trying to find a simple rebuild command or anything like that.

Any pkg * command returns the error:
Code:
      pkg: No image rooted at '/'

but everything else in the OS still functions normally.

Thanks!

Last edited by rbatte1; 08-21-2015 at 09:37 AM.. Reason: Added CODE tags for output/error
# 2  
Old 08-21-2015
Do you have any older boot environments to which you can fallback to ?
Code:
beadm list

You might want to revert to that.

Regards.
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to install pkg lsof in Solaris 11?

hi downloaded the pkg and installed the pkg from root user .But still when i run command lsof and man lsof .No command found is the error. I tried by pkgadd -d (.pkg file). Please help me ---------- Post updated at 12:44 PM ---------- Previous update was at 12:41 PM ---------- This is what i... (8 Replies)
Discussion started by: chaithanyaa
8 Replies

2. Solaris

# pkg publisher gives bash: pkg: command not found

This is the operating system im using Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC I need to install some packages by setting local repository While i run the below command # pkg publisher command returns bash: pkg: command not found while looking for /usr/bin/pkg i get bash:... (2 Replies)
Discussion started by: babinlonston
2 Replies

3. UNIX for Dummies Questions & Answers

MySQL Database Missing on UNIX server. Possible to recover?

My dedicated server is VERY old (running Apache/1.3.37 (Unix) PHP/4.4.4 FrontPage/5.0.2.2510). We have a script that runs and manages our customer database. Early in the morning last Friday, it was working fine and processed data as usual. Later in the day, we got this error: Cannot... (2 Replies)
Discussion started by: SurfMe69
2 Replies

4. Solaris

Solaris 11 pkg update question

Hi, I am trying to update my Solaris 11 system's Java 7 version to 1.7.0.65. I tried to do a pke update, and it only updated it to version 60. When I do a pkg list or search, i can see 65 is available but it wont update to it. I am getting this error, and I do not know how to get... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

5. Solaris

Pkg problem, one zone trying pkg.Oracle.com on port 1008

Hi Solaris Experts, The pkg utility on one of my non-global zones has stopped working, it's trying to connect to port 1008 at pkg.oracle.com I was using pkg successfully from this zone, but now it's showing this error: lzone1 $ pkg search xterm pkg: Some repositories failed to respond... (4 Replies)
Discussion started by: ad101
4 Replies

6. Solaris

How extract SUNWexplo.7.1.pkg & SUNWexplu.7.1.pkg from install_stb.sh?

Hi all, Could please guideas how to extract SUNWexplo.7.2.pkg & SUNWexplu.7.2.pkg from install_stb.sh. I need to upgrade my Sun Explorer to 7.2 version from 7.1 . This what written in read me file about its installation: The Lightweight Availability Collection Tool (LWACT) is no... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

7. Solaris

Solaris 10 2008 Core(ssh pkg)

hello... i'm new in solaris 10. i have installed solaris 10 core. but i need pkg ssh. anybody can help me how to install ssh. and where i can find this ssh pkg? hope somebody can give me solution... >.< searching but not found it >.<:( (6 Replies)
Discussion started by: yanto85
6 Replies

8. Solaris

Install Solaris pkg via web

here's a link shows how to install pkgs directly via http sat.lksf_sat_pkgweb.tex - Less known Solaris Features - wikis.sun.com (0 Replies)
Discussion started by: h@foorsa.biz
0 Replies

9. Cybersecurity

What Solaris SSL pkg in equivelant to OpenSSL v0.9.8i?

I am researching CVE-2009-1386 and am trying to determine if my version of SUNWopensslr is equivalent to OpenSSL v0.9.8i. Here's my output: root# pkginfo -l SUNWopensslr PKGINST: SUNWopensslr NAME: OpenSSL (Root) CATEGORY: system ARCH: sparc VERSION: ... (1 Reply)
Discussion started by: bluescreen
1 Replies

10. SuSE

Recover dropped database

I have deleted a database. I restored it again with a backup. Now we lost some data of two days. Is it possible to restore this lost data? (5 Replies)
Discussion started by: Eastme
5 Replies
Login or Register to Ask a Question