用rpm命令安裝定時器crontab


crontab -l  command not found

准備以下安裝包:

 ls -l
總用量 1004
-rw-r--r-- 1 root root  76296 10月  9 16:01 cronie-1.4.4-16.el6_8.2.x86_64.rpm
-rw-r--r-- 1 root root  31928 10月  9 16:01 cronie-anacron-1.4.4-16.el6_8.2.x86_64.rpm
-rw-r--r-- 1 root root  10612 10月  9 16:01 crontabs-1.10-33.el6.noarch.rpm
-rw-r--r-- 1 root root 166196 10月  9 16:01 procmail-3.22-25.1.el6_5.1.x86_64.rpm
-rw-r--r-- 1 root root 733816 10月  9 16:01 sendmail-8.14.4-9.el6_8.1.x86_64.rpm

[root@dzyw175 cronb]# rpm -ivh procmail-3.22-25.1.el6_5.1.x86_64.rpm
warning: procmail-3.22-25.1.el6_5.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
        file /usr/bin/formail from install of procmail-3.22-25.1.el6_5.1.x86_64 conflicts with file from package procmail-3.22-25.1.el6.x86_64
        file /usr/bin/lockfile from install of procmail-3.22-25.1.el6_5.1.x86_64 conflicts with file from package procmail-3.22-25.1.el6.x86_64
        file /usr/bin/procmail from install of procmail-3.22-25.1.el6_5.1.x86_64 conflicts with file from package procmail-3.22-25.1.el6.x86_64
[root@dzyw175 cronb]# rpm -ivh sendmail-8.14.4-9.el6_8.1.x86_64.rpm
warning: sendmail-8.14.4-9.el6_8.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
        libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by sendmail-8.14.4-9.el6_8.1.x86_64
        libcrypto.so.10(libcrypto.so.10)(64bit) is needed by sendmail-8.14.4-9.el6_8.1.x86_64
        libssl.so.10(libssl.so.10)(64bit) is needed by sendmail-8.14.4-9.el6_8.1.x86_64

缺失依賴關系,經過測試可以直接使用“–nodeps”選項忽略它。
[root@dzyw175 cronb]# rpm -ivh sendmail-8.14.4-9.el6_8.1.x86_64.rpm --nodeps
warning: sendmail-8.14.4-9.el6_8.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:sendmail               ########################################### [100%]
[root@dzyw175 cronb]# rpm -ivh cronie-1.4.4-16.el6_8.2.x86_64.rpm  --nodeps
warning: cronie-1.4.4-16.el6_8.2.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:cronie                 ########################################### [100%]
[root@dzyw175 cronb]# rpm -ivh crontabs-1.10-33.el6.noarch.rpm --nodeps
warning: crontabs-1.10-33.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:crontabs               ########################################### [100%]
[root@dzyw175 cronb]# rpm -ivh cronie-anacron-1.4.4-16.el6_8.2.x86_64.rpm --nodeps
warning: cronie-anacron-1.4.4-16.el6_8.2.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:cronie-anacron         ########################################### [100%]

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM