Security-Enhanced Linux (SELinux) - (2)

How to install packages in Rhel 7  ?

Package is a collection of software tools which are used to automate installing , updating , removing computer programs. There are two main types.
  • .rpm - These types are used yum install
  • .deb - These types are used apt-get 
We (Red Hat) belong to .rpm type.

Assume that we are going to install httpd service. httpd is a hyper text transfer protocol daemon.
Simply we are locally hosting a web server.
  1. yum install httpd
  2. systemctl status httpd.service
  3. systemctl enable httpd.service
  4. systemctl start httpd.service
  5. systemctl status httpd.service
No 2 in not required. It is used to check current status of the relevant service. After executing this you will be shown following results.

Note that No 3 is a important command that you need to execute. systemctl enable help to start relevant service in boot up process. Otherwise you need to manually start it up.
After executing No 4 service will start.
After executing No 5 will be shown following results.


Also we can use yum group command above purpose but it is not related to rhcsa part.
  1. yum grouplist
  2. yum group install <package name>
No 1 command is used to list down available packages.
In No 2 you have to replace <package name> with relevant package name.

After one of these method, you should open your browser and type localhost. If result came, it is successfully installed.
Use above command to query the result of installed rpm packages which are relevant to httpd.
There is  policy relevant to SELinux. Manufacture made it. 

Comments

Popular posts from this blog

Add Cisco Layer 2 Switch in GNS3 - GNS3 වලට Cisco Layer2 Switch එකක් ADD කිරීම

Schedule Tasking using "crontab" and "at"

User Management (1) - RHCSA