ForceVersionInstall

ForceVersionInstall

is an option to PacletInstall and PacletInstallSubmit that specifies whether an older version of a paclet is allowed to be installed if a newer version is already installed.

Details

  • Possible settings include:
  • Trueallow an older or equal version to be installed
    Falsedo not allow an older or equal version to be installed
  • By default, PacletInstall and PacletInstallSubmit will not allow a version of a paclet to be installed when a newer or equal version is already installed.
  • Using ForceVersionInstallTrue allows an older version to be installed, but this does not mean that the older version will actually be used; newer versions of a paclet are always used in preference to older ones.
  • ForceVersionInstallTrue is convenient to use while you are developing a paclet and want to repeatedly install modified versions of the paclet without changing the version number.

Examples

Basic Examples  (1)

Uninstall any existing version of ExamplePaclet:

This will install Version 2.0 (the highest available version) from the Wolfram paclet server:

Attempts to install an older version will fail:

Use ForceVersionInstall to allow installing an older version when a newer one is already installed:

Wolfram Research (2020), ForceVersionInstall, Wolfram Language function, https://reference.wolfram.com/language/ref/ForceVersionInstall.html.

Text

Wolfram Research (2020), ForceVersionInstall, Wolfram Language function, https://reference.wolfram.com/language/ref/ForceVersionInstall.html.

CMS

Wolfram Language. 2020. "ForceVersionInstall." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ForceVersionInstall.html.

APA

Wolfram Language. (2020). ForceVersionInstall. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ForceVersionInstall.html

BibTeX

@misc{reference.wolfram_2024_forceversioninstall, author="Wolfram Research", title="{ForceVersionInstall}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ForceVersionInstall.html}", note=[Accessed: 08-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_forceversioninstall, organization={Wolfram Research}, title={ForceVersionInstall}, year={2020}, url={https://reference.wolfram.com/language/ref/ForceVersionInstall.html}, note=[Accessed: 08-October-2024 ]}