Cannot downgrade installed pkg
See original GitHub issue- Version: 19.5.1
- Target: pkg
BundleIsVersionChecked
seems to default to true
. It would be nice to be able to override this default to allow for downgradable pkg files.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Cannot downgrade a package upgraded previously
After some investigation, I realized that aptitude installs the newer version by running dpkg to install a .deb file in /var/cache/apt/archives/ ...
Read more >Downgrading installed packages to a specific release | Support
Get a listing of the available package versions. In this example the package kernel-default will get downgraded from 3.0. · To downgrade use:...
Read more >Unable to downgrade version of Python package by `pip install
On a particular server I was unable to, as the below command calls to install 0.13.2 but ends up install back 0.17.0. If...
Read more >1759847 – command `dnf downgrade pkg` emits Error
Package nfs-utils of lowest version already installed, cannot downgrade it. Error: No packages marked for downgrade.
Read more >Can't downgrade package version in managed package
On beginning of our project, previous developers installed and used apex-lang package in our application. It is referenced in two classes and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After doing some more research and testing, it seems that the
BundleIsVersionChecked
option that is mentioned in thepkgbuild
manpage is only applicable when usingpkgbuild
in its stand-alone--root
form, and not applicable for the--component
form as used inelectron-builder
.The effect of this option is to populate or clear the contents of the
<bundle-version>
tag in thePackageInfo
which is contained in the innerpkg
. As far as I can tell, there doesn’t seem to be a command-line option topkgbuild --component
which directly controls this tag.If I manually use
pkgutil --expand
, edit the innerPackageInfo
to remove the contents of the<bundle-version>
tag, and then usepkgutil --flatten
to repackage, the resulting installer is capable of downgrading an installation.One really confusing “feature” is that the installer does not give any indication when an attempted downgrade is prevented - it still displays the success screen, and the only way to tell that the downgrade was not actually applied is to examine the installed application itself.
It looks to me like this has been fixed by now. The
isVersionChecked
option appears to be working correctly.