![]() Installing PHP 5.6: sudo apt-get install -y php5.6Īfter the installation process is complete, you can check the PHP version by running the following command: php -v PHP 8.2.3 (cli) (built: 16:58:12) (NTS).Installing PHP 7.4: sudo apt-get install -y php7.4.Installing PHP 8.2: sudo apt-get install -y php8.2.Even you can install multiple PHP versions at the same time. Once you have added the PPA to your Ubuntu system, You can install required PHP version on your system. To add this PPA to your system, run the following command in your terminal: sudo add-apt-repository ppa:ondrej/phpĪfter adding the PPA, update your package list with the following command: sudo apt-get update Step 2: Installing PHP The Ondřej Surý PPA is a Personal Package Archive that contains the latest versions of PHP. Note: Before installing a new version of PHP, make sure to backup any files that may be affected by the installation process. Read: How to Install PHP 7.0 & PHP 5.6 on Debian 8/7 via PPA.However, if you need to use an older or a newer version of PHP, you can follow the instructions below. Please support the nixCraft with a PayPal donation or Patreon.Ubuntu 18.04 comes with PHP 7.2 installed by default. Keeping the site online is challenging, with everyone blocking Ads □. nixCraft is a one-person show, and many of you use Adblocker. □ Was this helpful? Please add a comment to show your appreciation or feedback. Join the nixCraft community via RSS Feed or Email Newsletter. He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. For more info read documentation using the man command or pass the -help option: You learned about the pdfinfo command which acts as a Portable Document Format (PDF) document information extractor on a Unix and Linux CLI. $ pdfinfo myfile.pdf | grep -i author Summing up Of course, you can use the grep command or egrep command to filter out info for your scripts. We can see the document metadata (XML) as follows: $ pdfinfo -upw user-password-here filename.pdf How to print all JavaScript in the PDF You can specify the user password for the PDF file as follows: $ pdfinfo -opw owner-password-here file.pdf Providing this will bypass all security restrictions. ![]() ![]() Specify the owner password for the PDF file. PDF version: 1.3 A note about password protected pdf files Sample output: Title: Telecommunication Protocols Laboratory Course Pdfinfo to view tech information about a pdf file Let us see some examples for the pdfinfoc command. print and copy permissions (if encrypted).In addition, the following information is displayed too: The ‘Info’ dictionary contains the following values for given pdf file: Extracting poppler-utils-22.09.0_1: 100% What information is printed using the pdfinfo command The process will require 55 MiB more space. The following 10 package(s) will be affected (of 0 checked): Sample session from FreeBSD version 13: Password:įetching packagesite.pkg: 100% 6 MiB 6.7MB/s 00:01įreeBSD repository update completed. $ brew install xpdf FreeBSD install pdfinfo How to install xpdf on macOS / OS X to get pdfinfoįirst, install homebrew on macOS or OS X and then use the brew command as follows: The poppler-util Debian/Ubuntu/Mint Linux package contains command line utilities (based on Poppler) for getting information of PDF documents, convert them to other formats, or manipulate them. Use the apt-get command or apt command as follows to install the pdfinfo. Installing pdfinfo to find out PDF file information
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |