[indiana-discuss] Resetting the root ips image?
Stephen Hahn
sch at sun.com
Wed Apr 9 11:28:13 PDT 2008
* Josh <joshchang at stat.ucla.edu> [2008-04-09 18:13]:
> 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?
Aha. You can't yet. You have to use the older packaging system used
to build Nevada, which would be pkgadd(1M).
So
pkgadd -d /cdrom/sol_11_x86/Solaris_11/Product/Packages
would let you pick and choose.
> 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 /
-F (full image) instead of -U (user image).
> 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?
You'll need to delete the /.org.opensolaris,pkg directory. For a full
image, the image packaging information is stored in /var/pkg. You'll
want to run image-create with the -F option.
In the next release, we have a nicer command for changing repository
settings.
> 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
Right, because you've got a full image and a user image trying to
install into the same hierarchy.
- Stephen
--
sch at sun.com http://blogs.sun.com/sch/
More information about the indiana-discuss
mailing list