question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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.

See: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/pkgbuild.1.html

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
p120ph37commented, Jun 20, 2017

After doing some more research and testing, it seems that the BundleIsVersionChecked option that is mentioned in the pkgbuild manpage is only applicable when using pkgbuild in its stand-alone --root form, and not applicable for the --component form as used in electron-builder.

The effect of this option is to populate or clear the contents of the <bundle-version> tag in the PackageInfo which is contained in the inner pkg. As far as I can tell, there doesn’t seem to be a command-line option to pkgbuild --component which directly controls this tag.

If I manually use pkgutil --expand, edit the inner PackageInfo to remove the contents of the <bundle-version> tag, and then use pkgutil --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.

0reactions
p120ph37commented, Aug 6, 2021

It looks to me like this has been fixed by now. The isVersionChecked option appears to be working correctly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found