-
-
Notifications
You must be signed in to change notification settings - Fork 37
Self Upgrade
Gustavo Arnosti Neves edited this page Apr 12, 2018
·
7 revisions
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.
Please note that even though pdfScale can ignore prompts with --assume-yes, sudo may still ask for your password, depending on how you configured your sudo options for your user and pdfScale.
$ which pdfscale
/usr/local/bin/pdfscale
$ 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
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
Love <3 2018