How does one downgrade a package?  Using "pkg install" with an
explicit version number specified seems to work only if we are
upgrading packages.  If the version number specified is older than
the currently installed one, "pkg install" does nothing at all.

$ pkg list
NAME (AUTHORITY)                              VERSION         STATE      UFIX
example (local)                               1.0             installed  u---
example-dep                                   0.6.1           installed  ----

$ pkg install -q [EMAIL PROTECTED]

$ pkg list
NAME (AUTHORITY)                              VERSION         STATE      UFIX
example (local)                               1.1             installed  u---
example-dep                                   0.6.1           installed  ----

$ pkg install [EMAIL PROTECTED]

$ pkg list                  
NAME (AUTHORITY)                              VERSION         STATE      UFIX
example (local)                               1.1             installed  u---
example-dep                                   0.6.1           installed  ----

The only way to do this seems to be by uninstalling the package and
reinstalling the older version.  This would not be possible in all
cases -- for example, if we want to downgrade the "pkg" package
itself.

Venky.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to