How to install software in Red Hat Linux?
Are you facing any problem in installing packages from Red Hat Enterprise Linux 6 CD? Read the article to know the step by step process of installing these packages from CD.
Installing software from CD :
You can find numerous .rpm packages on Red Hat Enterprise Linux 6 CD. It is not as easy to install these packages as it was in Window OS. If you double click on any .rpm package, the system asks you to install dependencies. It is hard to find and install all the dependencies. So, create a small configuration file and then install the required software easily. In Linux, this configuration file is called repository. Even after creating a configuration file, you can't install these packages using the graphical mode. You need to install via terminal. This is easy and in this article, I will teach you how to do it.
Configuration for installing packages from CD
The entire configuration is done through the terminal. To open the terminal, right Click -> Open in Terminal option. For a detailed explanation, read the steps given below.
Step 1: Make sure that you have inserted your DVD in the DVD drive.
Step 2: In your terminal, switch as super-user/root. To do this, enter the command given below.
Now, enter the root's password. If you have already logged in as a root user, you can skip this step.
Step 3: Now, create a new directory in media. Name it 'Red Hat 6'. You are now going to mount all the contents of your CD in this directory.
Red Hat 6 is just the name of this folder. You can give any name you like.
Step 4: Now, you are going to mount the contents of your CD in the directory. To do so, enter the command given below.
#mount -t iso9660 dev/cdrom /media/redhat6
In this command, 't' represents the type of file system and iso9660 is the file-type of CD. If I do not mention these types in the command, the contents will be mounted as a normal file and not as .iso file. After mentioning the file type, you need to specify the source file and the destination file. Here, our source directory is cd-drive and the destination is the directory that you created in step 3.
Step 5: Now, you have completed 90% of the configuration. Check if the files are mounted correctly. To check this, you can use list files command.
All the contents of your CD should now show in your directory. Mounting takes less than a minute.
Step 6: This is the final step. Create a repo file in 'etc' folder.
Now, an empty page will open. Press 'i' or 'insert' key and enter the text.
After completing this, press 'esc' key. Then, press colon (:) key. Now type- wq!.
wq! - write and quit.
The above configuration is called yum configuration file. The base URL links the respond file. These files hold all information about the packages. Type the base URL directory correctly. All words are case-sensitive. In my CD, the 'Server' folder has a capital initial. Type the exact folder name. Below is the yum configuration file that I created for my PC.
Step 7: Now, you can install all files by using the command given below.
#yum install < software name from CD >-y
Read How to backup files in Fedora OS using Deja-Dup in simple steps?