Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CentOS 7 Linux Server Cookbook, Second Edition

You're reading from   CentOS 7 Linux Server Cookbook, Second Edition Get your CentOS server up and running with this collection of more than 80 recipes created for CentOS 7 - essential for Linux fans!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785887284
Length 326 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Jonathan Hobson Jonathan Hobson
Author Profile Icon Jonathan Hobson
Jonathan Hobson
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Installing CentOS FREE CHAPTER 2. Configuring the System 3. Managing the System 4. Managing Packages with YUM 5. Administering the Filesystem 6. Providing Security 7. Building a Network 8. Working with FTP 9. Working with Domains 10. Working with Databases 11. Providing Mail Services 12. Providing Web Services 13. Operating System-Level Virtualization 14. Working with SELinux 15. Monitoring IT Infrastructure Index

Updating the installation and enhancing the minimal install with additional administration and development tools

In this recipe, we will learn how to enhance the minimal install with additional tools that will give you a variety of administrative and development options, which in turn will prove vital during the lifetime of your server and which are essential for some recipes in this book. The minimal install is probably the most efficient way you can install a server, but having said that, a minimal install does require some additional features in order to make it a more compelling model.

Getting ready

To complete this recipe, you will require a minimal installation of the CentOS 7 operating system with root privileges and a connection to the Internet in order to facilitate the download of additional packages.

How to do it...

We will begin this recipe by updating the system.

  1. To update the system, log in as root and type:
    yum -y update
    
  2. CentOS will now search for the relevant updates and, if available, they will be installed. On completion and depending on what was updated (that is, kernel and new security features to name but a few), you can decide to reboot your computer. To do this, type:
    reboot
    
  3. Your server will now reboot and return to the login screen. We will now complete this recipe and enhance our current installation with a series of package groups that will prove to be very useful in the future. To do this, log in as root and type:
    yum -y groupinstall "Base" "Development Libraries" "Development Tools"
    yum -y install policycoreutils-python
    

How it works...

The purpose of this recipe is to enhance the minimal installation of the CentOS 7 operating system and by doing this you have not only introduced yourself to the Yellowdog Updater Modified (YUM) package manager (something to which we will return to later on in this book), but you now have a system that is capable of running a vast amount of applications right out-of-the-box.

So what have we learned from this experience?

We started the recipe by updating the system in order to ensure that it is up to date. At this stage, it is often a good idea to reboot the system. It is not expected that we will do this very often but it is expected when updating for the first time after the installation of the operating system, as it is most likely that there are major changes available. The reason behind this is typically based on the desire to take advantage of a new kernel or revised security updates. In the next phase, the recipe showed you how to add a series of package groups that may prove to be more than useful in the future. To save time, we wrapped the instruction to install the three main package groups: Base, Development Libraries, and Development Tools. The preceding action alone installs over 200 individual packages, thereby giving your server the ability to compile the code and run a vast array of applications out-of -the-box, that you may need over the life time of your server. To see a list of all the packages within a group, for example, from Base, run the yum groupinfo Base command. Another package we installed was policycoreutils-python which provides tools and programs to manage the security enhanced access control to Linux, which we will use quite often throughout the chapters of this book.

You have been reading a chapter from
CentOS 7 Linux Server Cookbook, Second Edition - Second Edition
Published in: Jan 2016
Publisher:
ISBN-13: 9781785887284
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image