作者:mobiledu2502890483 | 来源:互联网 | 2023-07-28 18:00
InmybashscriptIhavethefollowinglinesinstallingvariousLinuxpackagesonCentos6.5-twoq
In my bash script I have the following lines installing various Linux packages on Centos 6.5 - two questions:
在我的bash脚本中,我有以下几行在Centos 6.5上安装各种Linux软件包 - 两个问题:
- is it good practice to do it this way?
这样做是好的做法吗?
OR is there a better way maybe using rpms and how would I go about doing that?
或者有更好的方法可能使用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
1 个解决方案