Skip to content

Self Upgrade

Gustavo Arnosti Neves edited this page May 12, 2018 · 7 revisions

Self-Upgrade

Since v2.3.0, pdfScale can self-upgrade from the master github repository.
Since v2.3.4, pdfScale can receive --assume-yes and --insecure as upgrade parameters.

How-To

The best/easiest way to run the Upgrade is interactively.
Just run the Upgrade and accept if a new version is offered.

$ pdfscale --upgrade

Additional Options

  • --assume-yes - Will auto-answer yes to replace and sudo prompts
    • Please note that even though pdfScale can ignore prompts with --assume-yes, sudo may still ask for your password during the install if needed.
  • --insecure - Will make curl/wget ignore SSL certificates
    • Should be avoided, but some old installs have broken SSL capabilities, making this the only way to download.

Example on Linux Mint 18.3

Current location

$ which pdfscale
/usr/local/bin/pdfscale

Run upgrade

$ pdfscale --upgrade
pdfscale v2.3.4 - Self Upgrade

Preparing download to temp folder
 > /tmp/pdfScale_20180412-050220.tar.gz
Downloading file with wget

Extracting compressed file

   Current Version is: 2.3.4
Downloaded Version is: 2.3.4

Seems like we have downloaded the same version that is installed.

Are you sure that you want to replace the current installation with the downloaded one?
Y/y to continue, anything else to cancel > y

Upgrading...

There was an error when copying the new version.
Do you want to retry using sudo (as root)?
Y/y to continue, anything else to cancel > y
Upgrading with sudo...

Success! Upgrade finished!
 > /usr/local/bin/pdfscale

Cleaning up downloaded files from /tmp
 > /tmp/pdfScale_20180412-050220.tar.gz > Ok
 > /tmp/pdfScale-master > Ok

Example on CygWin

On Cygwin there is no need for root even on system installs

$ pdfscale --upgrade --assume-yes --insecure
pdfscale v2.3.8 - Self Upgrade

Preparing download to temp folder
 > /tmp/pdfScale_20180412-045019.tar.gz

HTTPS Insecure flag is enabled!
Certificates will be ignored by curl/wget

Downloading file with wget

Extracting compressed file

   Current Version is: 2.3.8
Downloaded Version is: 2.3.4

Seems like the downloaded version is older that the one installed.
It is basically a miracle or you have came from the future with this version!
BE CAREFUL NOT TO DELETE THE BETA/ALPHA VERSION WITH THIS UPDATE!

Assume yes activated, current version will be replaced with master branch

Upgrading...

Success! Upgrade finished!
 > /usr/local/bin/pdfscale

Cleaning up downloaded files from /tmp
 > /tmp/pdfScale_20180412-045019.tar.gz > Ok
 > /tmp/pdfScale-master > Ok
Clone this wiki locally