How to extract files from an RPM package on Linux

Question: I downloaded an RPM file (foo.rpm) from somewhere, and I would like to manually extract files from the RPM package. Is there an easy way to extract files from an RPM package without installing it? An RPM package contains a set of files, typically compiled software binaries, libraries, and their development source files. These […]
Continue reading…

 

How to set up NFS server and client on CentOS 7

Question: I would like to share a directory via NFS between CentOS 7 hosts. What is the procedure for configuring NFS server and client, and enabling NFS mounts between them in CentOS 7 environment? NFS is a distributed file system protocol built on top of Sun’s RPC (remote procedure call). NFS is popularly used to […]
Continue reading…

 

How to check the changelog of a package on Linux

Question: When I install or upgrade a package on Linux, I want to find out what changes (e.g., new features or bug fixes) have been made in the package before or after installing it. How can I view the changelog of a (Deb/RPM) package on [Debian, Ubuntu, CentOS, Fedora]? When a program or a library […]
Continue reading…

 

How to compile virt-manager on CentOS, Fedora or RHEL

Question: I would like to install the latest virt-manager which is available from its official website. How can I compile and install virt-manager from the source on [CentOS, Fedora or RHEL]? virt-manager is a popular GUI-frontend for libvirt, allowing users to create and manage guest virtual machines on libvirt-supported hypervisors such as QEMU/KVM or Xen. […]
Continue reading…

 

How to enable ELRepo repository on CentOS or RHEL

Question: I would like to install a device driver from ELRepo on my CentOS box. How can I install and enable the ELRepo repository on [CentOS or RHEL]? While CentOS/RHEL platforms maintain several official repositories (e.g., base, updates, contrib), they are lacking in terms of software coverage and release cycles. To bridge the gap between […]
Continue reading…

 

How to install Python3 on CentOS

Question: I am trying to install a Python app that requires python3 on CentOS system. However, my CentOS only has python 2.X installed, but not python 3.X. How can I install python3 on CentOS? As of the latest CentOS 7, the default Python version still remains python 2.7, and python3 is not available in base […]
Continue reading…

 

How to list all installed packages on CentOS or RHEL

Question: I want to find out what packages are installed on my CentOS box, so that I can replicate all the installations on another computer. Is there a way to get a full list of all RPM packages that I installed since I set up my initial CentOS system? When you want to create a […]
Continue reading…

 

How to compile ixgbe driver on CentOS, RHEL or Fedora

Question: I want to build and install the latest ixgbe 10G NIC driver. How can I compile ixgbe driver on CentOS, Fedora or RHEL? To use Intel’s PCI Express 10G NICs (e.g., 82598, 82599, x540) on your Linux system, you need to install ixgbe driver. While modern Linux distributions come with ixgbe driver pre-installed as […]
Continue reading…

 

How to install and access CentOS remote desktop on VPS

Question: I want to install CentOS desktop on VPS, and be able to access the desktop GUI remotely from home. What is a recommended way to set up and access CentOS-based remote desktop on VPS? Nowadays teleworking or remote working with flexible hours is increasingly popular in tech industry. One of the enabling technologies behind […]
Continue reading…

 

How to use yum to download a RPM package without installing it

Question: I want to download a RPM package from Red Hat’s standard repositories. Can I use yum command to download a RPM package without installing it? yum is the default package manager for Red Hat based systems, such as CentOS, Fedora or RHEL. Using yum, you can install or update a RPM package while resolving […]
Continue reading…

 

How to install phpMyAdmin on CentOS

Question: I am running a MySQL/MariaDB server on CentOS, and I would like to manage its databases via web-based interface using phpMyAdmin. What is a proper way to install phpMyAdmin on CentOS? phpMyAdmin is an open-source PHP application designed as a web-based MySQL/MariaDB database administration tool. While there exist lightweight database management tools such as […]
Continue reading…

 

How to install REMI repository on CentOS or RHEL

Question: How can I configure the REMI repository on CentOS or RHEL, and install packages from the REMI repository? The REMI repository offers updated versions of core CentOS and RHEL packages, notably the latest PHP/MySQL stack. One thing to remember before installing the REMI repository is that it is not recommended to run yum update […]
Continue reading…

 

How to open a port in the firewall on CentOS or RHEL

Question: I am running a web/file server on my CentOS box, and to access the server remotely, I need to modify a firewall to allow access to a TCP port on the box. What is a proper way to open a TCP/UDP port in the firewall of CentOS/RHEL? Out of the box, enterprise Linux distributions […]
Continue reading…

 

How to configure a static IP address on CentOS 7

Question: On CentOS 7, I want to switch from DHCP to static IP address configuration with one of my network interfaces. What is a proper way to assign a static IP address to a network interface permanently on CentOS or RHEL 7? If you want to set up a static IP address on a network […]
Continue reading…

 

How to change a network interface name on CentOS 7

Question: On CentOS 7, I would like to change the assigned name of a network interface to something else. What is a proper way to rename a network interface on CentOS or RHEL 7? Traditionally, network interfaces in Linux are enumerated as eth[0123…], but these names do not necessarily correspond to actual hardware slots, PCI […]
Continue reading…

 

How to change hostname on CentOS or RHEL 7

Question: What is a proper way to change hostname on CentOS / RHEL 7 (permanently or temporarily)? In CentOS or RHEL, there are three kinds of hostnames defined: (1) static, (2) transient, and (3) pretty. The “static” hostname is also known as kernel hostname, which is initialized from /etc/hostname automatically at boot time. The “transient” […]
Continue reading…

 

How to install Shutter on CentOS

Question: I would like to try out Shutter screenshot program on my CentOS desktop. However, when I tried to install Shutter with yum, it says “No package shutter available.” How can I install Shutter on CentOS? Shutter is an open-source (GPLv3) screenshot tool for Linux desktop. It is packed with a number of user-friendly features, […]
Continue reading…