[bug-notifications] [pkgutil 0004117]: RFE: Support installation of packages to alternate root (pkgaddopts not sufficient)
Mantis Bug Tracker
noreply at opencsw.org
Wed Jun 9 18:41:24 CEST 2010
A NOTE has been added to this issue.
======================================================================
http://www.opencsw.org/mantis/view.php?id=4117
======================================================================
Reported By: skayser
Assigned To: bonivart
======================================================================
Project: pkgutil
Issue ID: 4117
Category: regular use
Reproducibility: N/A
Severity: minor
Priority: normal
Status: feedback
======================================================================
Date Submitted: 2010-01-07 12:12 CET
Last Modified: 2010-06-09 18:41 CEST
======================================================================
Summary: RFE: Support installation of packages to alternate
root (pkgaddopts not sufficient)
Description:
I have a system which is running the OpenCSW stack already. On this system
I just tried to install packages to another root environment mounted to /a.
To do so I added "pkgaddopts=-R /a" to an alternative pkgutil.conf file
(pkgutil.conf.dr) and specificied this configuration with --config.
The problem with this approach is that pkgutil doesn't query the /a root
for installed packages. Instead it checks the local / file system which
already has the requested packages installed.
# grep pkgaddopts /etc/opt/csw/pkgutil.conf.dr
pkgaddopts=-R /a
# pkginfo -R /a | grep CSW
#
# pkgutil --config /etc/opt/csw/pkgutil.conf.dr -i sudosh2 sudo
Parsing catalog, may take a while...
Updated packages: CSWcswclassutils-1.30,REV=2009.11.21
CSWsudosh2-1.0.2,REV=2009.12.02
Current packages: CSWcommon-1.4.7,REV=2009.09.20
CSWsudo-1.6.8p12,REV=2005.12.19 CSWsudo-common-1.6.8p12,REV=2005.12.19
Total size: 51.6 KB
2 packages to fetch. Do you want to continue? [Y,n]
Could we get an pkgutil-integrated approach for package installation to an
alternate root path? Or as a temporary workaround a pkginfoopts option
(don't know whether that would be sufficient though)? I would favor the
integrated approach though.
======================================================================
----------------------------------------------------------------------
(0008000) bonivart (manager) - 2010-06-09 18:41
http://www.opencsw.org/mantis/view.php?id=4117#c8000
----------------------------------------------------------------------
Can you please test this for me? :-) The code is in the new pkgutil 2.0
package but I haven't set up a test case for it.
More information about the bug-notifications
mailing list