wiki:centos_7_no_wget_install_epel
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:centos_7_no_wget_install_epel [2017/01/12 18:48] – created walkeradmin | wiki:centos_7_no_wget_install_epel [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CentOs 7 no WGET install EPEL ====== | ||
+ | <color darkorange> | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | Today I started to use some brand new G7 MFEL Servers, that have CentOS 7.2 preinstalled. The preinstalled CentOS is a ' | ||
+ | \\ | ||
+ | \\ | ||
+ | ---- | ||
+ | ==== Linux Repository ==== | ||
+ | \\ | ||
+ | A Repository has a few meanings, but in the sense I am referring to, a repository is a location maintained by the Linux distribution provider, that contains the latest versions of all of the components required for that Linux distribution, | ||
+ | \\ | ||
+ | \\ | ||
+ | It seems by default the MFEL has a reference to a repository that is located on its own internal drive, this contains nothing, so we need to update this first. | ||
+ | \\ | ||
+ | \\ | ||
+ | The repository refers to Extra Packages for Enterprise Linux (EPEL). So we are installing the epel repositories, | ||
+ | \\ | ||
+ | \\ | ||
+ | ---- | ||
+ | ==== Update Repositories ==== | ||
+ | \\ | ||
+ | To update the repositories, | ||
+ | \\ | ||
+ | \\ | ||
+ | wget is not installed, and to install it you would need to update the repositories (chicken and egg) | ||
+ | wget does not seem to be listed as a repository item, so is not available via the repository I am installing (epel) | ||
+ | \\ | ||
+ | \\ | ||
+ | <color red> | ||
+ | \\ | ||
+ | \\ | ||
+ | Before downloading anything, you need to know your Linux version (just 5,6,7 etc) for this you can use: | ||
+ | \\ | ||
+ | \\ | ||
+ | rpm --query centos-release | ||
+ | | ||
+ | centos-release-7-2.1511.el7.centos.2.10.x86_64 | ||
+ | \\ | ||
+ | \\ | ||
+ | Now you can install the correct epel version | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | Instead of using wget https:// | ||
- | + | You can use curl -O https:// | |
- | + | | |
- | + | | |
- | + | | |
- | + | ||
- | + | % Total % Received % Xferd Average Speed | |
- | curl -O https:// | + | Dload Upload |
- | + | 100 14704 100 14704 0 | |
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | Remember to use the correct version ../ | ||
+ | \\ | ||
+ | \\ | ||
+ | sudo rpm -ivh epel-release-latest-7.noarch.rpm | ||
+ | sudo yum clean all | ||
+ | sudo rpmdb -v --rebuilddb | ||
+ | sudo yum -y install libselinux-python | ||
+ | \\ | ||
+ | \\ | ||
+ | That's it, epel repository is now installed. You can check from the website what is available. So for instance, from a web browser navigate to: | ||
+ | \\ | ||
+ | \\ | ||
+ | https:// | ||
+ | \\ | ||
+ | \\ | ||
+ | Here you will see a list like: | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | \\ | ||
+ | Navigate to | ||
+ | \\ | ||
+ | \\ | ||
+ | 7Server/ | ||
+ | \\ | ||
+ | \\ | ||
+ | And scroll down until you see htop | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | \\ | ||
+ | So we can see that htop is part of the epel repository and can be installed. | ||
+ | \\ | ||
+ | \\ | ||
wiki/centos_7_no_wget_install_epel.1484246917.txt.gz · Last modified: 2023/03/09 22:35 (external edit)