Download the pdftk rpm using the following url:
You can installed it using below command:
However, while installing if you get libgcj package error.
Then, follow below steps to install libgcj from EL5 repository.
You will need to create a repo file /etc/yum.repos.d/public-yum-el5.repo with the following contents :
and then you can install it using yum:
after this, you can easily install the pdftk using rpm:
You can veify the pdftk version using the following command from the server:
That's it.
Code:
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-1.x86_64.rpm
Code:
[root@u20859162 src]# wget https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-1.x86_64.rpm --2018-02-25 19:09:40-- https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-1.x86_64.rpm Resolving www.pdflabs.com (www.pdflabs.com)... 23.253.106.249 Connecting to www.pdflabs.com (www.pdflabs.com)|23.253.106.249|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1025720 (1002K) [application/x-redhat-package-manager] Saving to: ‘pdftk-2.02-1.x86_64.rpm’ 100%[===============================================================================================================================>] 1,025,720 3.49MB/s in 0.3s 2018-02-25 19:09:41 (3.49 MB/s) - ‘pdftk-2.02-1.x86_64.rpm’ saved [1025720/1025720]
Code:
rpm -ivh pdftk-2.02-1.x86_64.rpm
Code:
[root@u20859162 src]# rpm -ivh pdftk-2.02-1.x86_64.rpm error: Failed dependencies: libgcj is needed by pdftk-2.02-1.x86_64 libgcj.so.7rh()(64bit) is needed by pdftk-2.02-1.x86_64
Then, follow below steps to install libgcj from EL5 repository.
You will need to create a repo file /etc/yum.repos.d/public-yum-el5.repo with the following contents :
Code:
[el5_latest] name=Oracle Linux $releasever Latest ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_ga_base] name=Oracle Linux $releasever GA installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_u1_base] name=Enterprise Linux $releasever Update 1 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_u2_base] name=Enterprise Linux $releasever Update 2 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_u3_base] name=Enterprise Linux $releasever Update 3 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_u4_base] name=Enterprise Linux $releasever Update 4 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/4/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_u5_base] name=Enterprise Linux $releasever Update 5 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/5/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [ol5_u5_base] name=Oracle Linux $releasever Update 5 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/5/base/x86_64/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [ol5_u6_base] name=Oracle Linux $releasever Update 6 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [ol5_u7_base] name=Oracle Linux $releasever Update 7 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/7/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [ol5_u8_base] name=Oracle Linux $releasever Update 8 installation media copy ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/8/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_addons] name=Enterprise Linux $releasever Add ons ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_oracle_addons] name=Oracle Software addons for Enterprise Linux $releasever ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [ol5_UEK_latest] name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [ol5_UEK_base] name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch) baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0 [el5_unsupported] name=Productivity Applications for Enterprise Linux $releasever ($basearch) baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/unsupported/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=0
Code:
yum install libgcj
Code:
Dependencies Resolved ========================================================================================================================================================================= Package Arch Version Repository Size ========================================================================================================================================================================= Installing: libgcj x86_64 4.1.2-55.el5 el5_latest 18 M Installing for dependencies: atk x86_64 2.22.0-3.el7 base 258 k gtk-update-icon-cache x86_64 3.22.10-5.el7_4 updates 28 k gtk2 x86_64 2.24.31-1.el7 base 3.4 M hicolor-icon-theme noarch 0.12-7.el7 base 42 k libXcomposite x86_64 0.4.4-4.1.el7 base 22 k libXcursor x86_64 1.1.14-8.el7 base 30 k libXi x86_64 1.7.9-1.el7 base 40 k libXinerama x86_64 1.1.3-2.1.el7 base 14 k libXrandr x86_64 1.5.1-2.el7 base 27 k libXtst x86_64 1.2.3-1.el7 base 20 k libart_lgpl x86_64 2.3.21-10.el7 base 67 k Transaction Summary ========================================================================================================================================================================= Install 1 Package (+11 Dependent packages) Total download size: 22 M Installed size: 68 M Is this ok [y/d/N]:
Code:
[root@u20859162 src]# rpm -ivh pdftk-2.02-1.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:pdftk-2.02-1 ################################# [100%]
Code:
[root@u20859162 src]# pdftk --version pdftk 2.02 a Handy Tool for Manipulating PDF Documents Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com This is free software; see the source code for copying conditions. There is NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment