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 cache. To retain the cached packages, change the keepcache setting to 1 in the /etc/yum.conf file as follows: # vi … [Read more...] about How to clean YUM cache in CentOS / RHEL
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 (requires reboot) 1. Edit /etc/default/grub and change the value of kernel parameter ipv6.disable from 1 to 0 in line GRUB_CMDLINE_LINUX, e.g.: # cat … [Read more...] about How to enable IPv6 on CentOS / RHEL 7
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 the system boots, it is necessary that some OS function ensures a given interface is always assigned the same name, so renaming of interfaces will be seen during the boot process. In … [Read more...] about CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
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 distinct broadcast domains that are mutually isolated. With VLANs, network switches (not routers) create the broadcast domain. Each VLAN is identified by a VID (VLAN Identifier) in … [Read more...] about CentOS / RHEL 7 : How to configure VLAN Tagging using nmcli
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 removing packages. The following provides examples of these options. Query Packages 1. Listing all installed packages To … [Read more...] about RPM command examples to query, install, remove and upgrade packages
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 place. It is essential that the new partition be created at exactly the same origin as the deleted partition, else severe data corruption and loss will occur. Check … [Read more...] about CentOS / RHEL : How to extend Physical Volume in LVM by extending the Disk Partition used
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 with the bonding driver for aggregating multiple physical network interfaces into a single logical interface (for example, … [Read more...] about What are the Network Bonding Modes In CentOS / RHEL
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: # yum install yum-plugin-downloadonly 2. Run yum command with "--downloadonly" option as follows: # yum install --downloadonly --downloaddir=[directory] … [Read more...] about How to use “yum downloadonly” to download a package without installing it
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 with the bonding driver for aggregating multiple physical network interfaces into a single logical interface (for example, … [Read more...] about CentOS / RHEL 7 : How to configure Network Bonding or NIC teaming
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 of the operations are performed using nmcli command: 1. general 2. networking 3. radio 4. connection 5. device. Use the help argument to … [Read more...] about How to configure and Manage Network Connections using nmcli