FS#23541 - [pacman] -Syu should also downgrade to the latest versions in the repos
Attached to Project:
Pacman
Opened by Heiko Baums (cyberpatrol) - Thursday, 31 March 2011, 18:27 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Tuesday, 24 May 2011, 06:39 GMT
Opened by Heiko Baums (cyberpatrol) - Thursday, 31 March 2011, 18:27 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Tuesday, 24 May 2011, 06:39 GMT
|
Details
Description:
pacman -Syu should not only update to the latest versions in the repositories, but also downgrade instead of just printing a warning that the installed package version is newer than the version in the repository. This way it would be easily possible to temporarily test new package versions in [testing] in case of an existing bug and then downgrade to the stable repositories [core] and [extra] again without losing the dependency information by installing up- or downgraded dependencies explicitly with pacman -S. This feature should at least be made optional so that the users can decide which behaviour they prefer. |
This task depends upon
Closed by Rémy Oudompheng (remyoudompheng)
Tuesday, 24 May 2011, 06:39 GMT
Reason for closing: None
Additional comments about closing: Nothing to do.
Tuesday, 24 May 2011, 06:39 GMT
Reason for closing: None
Additional comments about closing: Nothing to do.
-u, --sysupgrade upgrade installed packages (-uu allows downgrade)
-u, --sysupgrade
Upgrades all packages that are out of date. Each currently-installed package will be examined and
upgraded if a newer package exists. A report of all packages to upgrade will be presented and the
operation will not proceed without user confirmation. Dependencies are automatically resolved at this
level and will be installed/upgraded if necessary. **Pass this option twice to enable package downgrade**; in
this case pacman will select sync packages whose version does not match with the local version. This can
be useful when the user switches from a testing repo to a stable one. Additional targets can also be
specified manually, so that -Su foo will do a system upgrade and install/upgrade the foo package in the
same operation.
It uses basically the same language for -Syy option.
** - emphasis mine.
* regular upgrades: 'pacman -Su',
* downgrades: 'pacman -Suu',
* updating and installing a new package: 'pacman -Su foo'.