For some operations (for example, a yum install operation), Yum downloads the packages to install into the Yum cache. The cached packages are located in a subdirectory structure from /var/cache/yum that reflects the architecture, the distribution release, and the repository from where the packages were downloaded. After successful installation, the packages are deleted from the […]
Archives for November 2017
How to enable IPv6 on CentOS / RHEL 7
IPv6 is enabled by default on RHEL / CenOS 7 systems. So, if IPv6 was disabled on the system intentionally, it can be re-enabled by the following either of the methods described below. 1. Enabling IPv6 in kernel module (requires reboot) 2. Enabling IPv6 using sysctl settings (no reboot required) Enabling IPv6 in kernel module […]
CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
At boot time (or whenever a network driver is loaded) interfaces are always assigned ethX style names by the kernel, where X is the lowest currently unused number starting with 0 (zero). The kernel has no ability to ensure drivers or interfaces are presented in the same order every time. Because of this, every time […]
CentOS / RHEL 7 : How to configure VLAN Tagging using nmcli
A VLAN is a type of local area network that does not have its own dedicated physical infrastructure but instead uses another local area network to carry its traffic. The traffic is encapsulated so that a number of logically separate VLANs can be carried by the same physical LAN. With VLANs, you can create multiple […]
RPM command examples to query, install, remove and upgrade packages
All software on a Linux system is divided into packages that can be installed, uninstalled, upgraded, queried, and verified. CentOS/RHEL uses the Red Hat Package Manager (RPM) to facilitate the installation, upgrade and removal of software packages. The rpm utility provides many useful options for querying and verifying packages, as well as installing, upgrading, and […]
CentOS / RHEL : How to extend Physical Volume in LVM by extending the Disk Partition used
The post discusses on how to expand the space available in an LVM volume by extending the physical disk partition using fdisk. This example shows how to resize the physical volume /dev/sdc1 from 200MB to 400MB. Potential Data Loss Warning: This step will delete the existing partition structure and create a new partition in its […]
What are the Network Bonding Modes In CentOS / RHEL
Network interface bonding is called by many names: Port Trunking, Channel Bonding, Link Aggregation, NIC teaming, and others. It combines or aggregates multiple network connections into a single channel bonding interface. This allows two or more network interfaces to act as one, to increase throughput and to provide redundancy or failover. The Linux kernel comes […]
How to use “yum downloadonly” to download a package without installing it
Ther are multiple ways in which you can download a yum package without installing it. The 2 most commonly used methods are described here in the post. 1. using the “downloadonly” plugin for yum 2. using “yumdownloader” utility. Method 1 : using the “downloadonly” plugin for yum 1. Install the package including “downloadonly” plugin: # […]
CentOS / RHEL 7 : How to configure Network Bonding or NIC teaming
Network interface bonding is called by many names: Port Trunking, Channel Bonding, Link Aggregation, NIC teaming, and others. It combines or aggregates multiple network connections into a single channel bonding interface. This allows two or more network interfaces to act as one, to increase throughput and to provide redundancy or failover. The Linux kernel comes […]
How to configure and Manage Network Connections using nmcli
NetworkManager includes a command-line tool, nmcli, which is used to control NetworkManager. You can use nmcli to create, display, edit, delete, activate, and deactivate network connections, as well as control and display network device status. The syntax is: # nmlci OPTIONS OBJECT { COMMAND | help } There are five different objects on which most […]