[indiana-discuss] Resetting the root ips image?

Josh joshchang at stat.ucla.edu
Wed Apr 9 11:06:06 PDT 2008


Well this is actually two questions

I was trying to install the ZFS web management console from the Nevada disk so I tried to set the 'root image?' to the cdrom in order to install packages by using this command which didnt work:

pkg image-create -a prefile=file://cdrom/sol_11_x86/Solaris_11/Product/ /

So the first part of the question is how can I use ips to install packages off the Nevada release dvd?

Well then I wanted to be able to install packages from the default repository so I tried

pkg image-create -U -a opensolaris.org=http://pkg.opensolaris.org /

But now when I try to install any package I think it tries to reinstall all packages I already have on my system, for instance I have SUNWgcc installed from before, but it tries to reinstall it and all dependencies. How can I reset things so that the package manager knows what packages I already have installed?

josh at hrtpstore:~# pkg install SUNWgcc

DOWNLOAD                                    PKGS       FILES     XFER (MB)
SUNWlxml                                    3/13    358/1478  13.19/164.96Traceback (most recent call last):
  File "/usr/bin/pkg", line 856, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 824, in main_func
    return install(img, pargs)
  File "/usr/bin/pkg", line 367, in install
    verbose = verbose, noexecute = noexecute)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 930, in list_install
    ip.execute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 321, in execute
    p.preexecute()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 247, in preexecute
    flist.get_files()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 194, in get_files
    os.link(extract_path, cppath)
OSError: [Errno 17] File exists
--

This message posted from opensolaris.org



More information about the indiana-discuss mailing list