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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Essential Linux Commands

You're reading from   Essential Linux Commands 100 Linux commands every system administrator should know

Arrow left icon
Product type Paperback
Published in Nov 2023
Publisher Packt
ISBN-13 9781803239033
Length 250 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Paul Olushile Paul Olushile
Author Profile Icon Paul Olushile
Paul Olushile
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part 1:Server Installations and Management Commands
2. Chapter 1: Getting a CentOS Server Up and Running FREE CHAPTER 3. Chapter 2: Linux User and Group Commands 4. Chapter 3: File Compression and Archival Commands 5. Part 2:Frequently Used Commands – Part 1
6. Chapter 4: Format and Disk Space Commands 7. Chapter 5: Linux Permissions Commands 8. Chapter 6: Filesystem Mount and Manipulation Commands 9. Part 3:Frequently Used Commands – Part 2
10. Chapter 7: File Content and Conversion Commands 11. Chapter 8: Linux SWAP Commands 12. Chapter 9: Linux Monitoring and Debugging Commands 13. Chapter 10: Linux IPTABLES and Network Commands 14. Chapter 11: File Transfer, Downloading, and Managing Log Files 15. Part 4:Linux Security and the Cloud
16. Chapter 12: Exploring Linux Security 17. Chapter 13: Linux in the Cloud 18. Index 19. Other Books You May Enjoy

Package installation commands

Package installation commands are used in CentOS to install and manage software packages on the system. The package management system in CentOS is called Yellowdog Updater Modified (YUM), and it provides a centralized method for managing and installing software packages.

YUM package management system

YUM is the default package manager for CentOS. It makes it easy to manage software packages by resolving dependencies and downloading required packages. With YUM, users can install new packages, update existing packages, and remove packages as needed. YUM provides a command line interface that allows users to manage packages from the terminal, as well as a graphical user interface for users who prefer a visual approach.

Common package installation commands

The most common commands used with YUM include yum install to install a new package, yum update to update an existing package, and yum remove to remove a package. Additionally, yum list can be used to list all available packages, and yum search can be used to search for packages. It is important to remember that when using YUM to manage packages, it is necessary to have an active internet connection and to run the commands as root or with administrative privileges.

The following commands are the starting point of the 100 Linux Commands Every System Administrator Should Know journey:

  • yum upgrade: The yum upgrade command is used in CentOS Linux to upgrade all installed packages to their latest available version. The command updates the system with the latest packages, bug fixes, and security patches, ensuring the system remains secure and stable. The yum upgrade command is executed in the terminal and it is executed with administrative privileges, usually as the root user. By running the command, the system will upgrade all installed packages and resolve any dependencies or conflicts that might arise during the upgrade process.
Figure 1.35 – Upgrading the server

Figure 1.35 – Upgrading the server

  • yum update: This package management tool is used in CentOS and other Linux distributions to upgrade and update system software packages. It downloads the latest package updates from a repository and installs them on the system, ensuring that your system has the most up-to-date security patches and bug fixes. Running yum update on a regular basis is an important part of system maintenance, as it helps keep your system secure and running smoothly.
Figure 1.36 – Updating the server

Figure 1.36 – Updating the server

  • reboot: This command is used to restart a computer running on a Unix-based operating system such as Linux. It is used to apply changes made to the system or to refresh the system after completing a process. The command can be executed by a user with root or superuser privileges. Upon executing the command, the system initiates a reboot sequence and all running processes are terminated. Then, the system is restarted. The reboot command is often used after completing a system update or upgrade to ensure the changes are applied.
Figure 1.37 – Rebooting the server

Figure 1.37 – Rebooting the server

You have been reading a chapter from
Essential Linux Commands
Published in: Nov 2023
Publisher: Packt
ISBN-13: 9781803239033
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