Skip to main content

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

  • From: Shawn Walker < >
  • To:
  • Subject: [pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages
  • Date: Fri, 13 Dec 2013 16:47:49 -0800

On 12/13/13 15:37, Edward Pilatowicz wrote:
On Fri, Dec 13, 2013 at 02:39:03PM -0800, Xiaobo Shen wrote:
In this webrev, a new option --exact is added into pkg install
command. This option is used if user want to install exactly the
packages specified in this install operation and their dependent
packages if any. All other packages installed will be removed. It
generally should support basic operations as pkg install. I did
basic implementation and basic tests for this option. Let me know
what did I miss. Thanks.

link:
https://ips.java.net/webrev/xiaoshen/pkginstall_17699233_1/


i think your implementation will have some unexpected side effects.  for
example, if i installed a system with solaris-large-server, and then i
decided that i wanted to change that to be solaris-small-server, if i
did:

        pkg install --exact solaris-small-server

then that would not only install solaris-small-server, but it would also
always upgrade my system to the latest version of solaris-small-server
at the same time.  furthermore, if was running s11.2, but i had only
configured a repo with s11.1, the command would happily downgrade my
system, which probably wouldn't end well.

Actually, Xiaobo and I talked about the upgrade case specifically to prevent that.

I would note that Bart seems to have a different view here; Bart's view seems to be that consistency in interface is the right answer. In other words, today, if you type 'pkg install entire', we're going to try to upgrade your system. So we should do the same here.

I'm hesitant to do that for the '--exact' case as I don't think our users are expecting an upgrade at the same time -- just installs and removals.

The downgrade case is tricky though, that wouldn't be accounted for in what I originally suggested to Xiaobo.

-Shawn


[pkg-discuss] Review request -> 17699233 pkg install could have an option to ignore any installed packages

Xiaobo Shen 12/13/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/13/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Xiaobo Shen 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Xiaobo Shen 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Shawn Walker 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Bart Smaalders 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/14/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Bart Smaalders 12/16/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/16/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Xiaobo Shen 12/18/2013

[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages

Edward Pilatowicz 12/18/2013
 
 
Close
loading
Please Confirm
Close