Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install the Fedora Project repository (add proxy settings as necessary)

    Code Block
    languagebash
    titlePrompt
    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
  2. Since ne Editor is not in the Fedora Project, install that repository as well

    Code Block
    languagebash
    titlePrompt
    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
  3. If you are installing packages from behind a proxy

    , first install local packages before setting up proxy information in yum.conf

    where 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

    t

    the 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
    languagebash
    titlePrompt
    sudo yum install systemd-python
    sudo yum install bzip2
  4. If you are behind a proxy, update the following line in /etc/yum.conf => proxy={http://proxyaddress:port}

  5. Run the following script

    Code Block
    languagebash
    titleBash 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