...
Install the Fedora Project repository (add proxy settings as necessary)
Code Block language bash title Prompt wget http://dl.fedoraproject.org/pub/epel1/7/x86_64/e/epel-release-7-9.noarch.rpm [-e use_proxy=yes -e http_proxy={proxyaddress:port}] sudo rpm -ihv epel-release-7.9.noarch.rpm
Since ne Editor is not in the Fedora Project, install that repository as well
Code Block language bash title Prompt wget http://ne.di.unimi.it/ne-3.0.1-1.x86_64.rpm sudo rpm -ihv ne-3.0.1-1.x86_64.rpm
If you are installing packages from behind a proxy
, first install local packages before setting up proxy information in yum.confwhere some packages install from outside the proxy and others behind it, you can install the packages behind the proxy first and then update the yum.conf file afterwards. According to documentation, this step could be avoided by setting
tthe value proxy=_none_ on repo.conf files that do not require to go through the proxy. However, this does not always seem to work as designed. In this case, we have two dependent packages that are installed behind the proxy
Code Block language bash title Prompt sudo yum install systemd-python sudo yum install bzip2
- If you are behind a proxy, update the following line in /etc/yum.conf => proxy={http://proxyaddress:port}
Run the following script
Code Block language bash title Bash script #!/bin/bash # Script to install recommended tools on RHEL declare -a arr=("at" "man" "vim" "rsync" "ntp" "telnet" "zip" "unzip" "mlocate" "htop" "wget" "ne" "colordiff" "wdiff" "openssh" "fail2ban") for i in "${arr[@]}" do fi ! rpm -qa | grep "^${i}-[0-9]"; then yum -y install $i fi done printf "The following packages are installed:\n\n" for i in "${arr[@]}" do printf "${i} : " rpm -qa | grep "^${i}-[0-9]" || printf "Not installed\n" done