在我的bash腳本我有在CentOS 6.5以下行安裝各種Linux軟件包 - 兩個問題:Bash腳本 - 以這種方式安裝好的練習?
- 是很好的做法,做這種方式?
或者有沒有更好的方法,也許使用rpms,我該怎麼做呢?
http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm yum -y install update nano mlocate bind bind-utils php-mbstring aide psacct screen tmux iperf ipset rsync htop innotop dstat traceroute strace ltrace rkhunter nmap curl curl-devel php-pear php-xml php-devel gcc zlib-devel pcre-devel php zip unzip telnet php-imap vsftpd wget yum -y install perl-DateTime-Format-HTTP perl-DateTime-Format-Builder yum -y install php-pdo php-gd php-xml yum -y install expect rpm -Uvh --force ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/perl-BerkeleyDB-0.43-3.el6.x86_64.rpm pecl install -f zip
下載一個rpm然後rpm -i file.rpm' –
使用'--force'基本上**從不**正確。 –
另外'安裝更新'可能是不正確的,你可能看到yum抱怨'update'不是它所知道的包。 –