How to enable Nux Dextop repository on CentOS or RHEL

Question: I would like to install a RPM package which is available only in Nux Dextop repository. How can I set up Nux Dextop repository on CentOS or RHEL? Nux Dextop is a third-party RPM repository which contains many popular desktop and multimedia related packages (e.g., Ardour, Shutter, etc) for CentOS, RHEL and ScientificLinux. Currently, […]
Continue reading…

 

How to install htop on CentOS or RHEL

Question: I heard nice things about htop as an alternative to top command. When I tried to install htop with yum package manager on CentOS, I got “No package htop available” error. How can I install htop on CentOS/RHEL? Htop vs. Top htop is an ncurses-based real-time process viewer for Linux. While its interface is […]
Continue reading…

 

How to upgrade Ruby on CentOS

Question: I installed a Ruby package with rubygems on CentOS 6.5. When I attempt to start the Ruby application, it fails to start because my CentOS system does not meet the minimum version requirement of Ruby (1.9 and higher). How can I upgrade Ruby on CentOS? On CentOS 6.5, the default version of Ruby installed […]
Continue reading…

 

How to upgrade autoconf on CentOS

Question: I am trying to use autoconf to generate a configuration file on CentOS. However, it fails with the following error. Apparently, the default autoconf on CentOS is not meet the requirement. How can I upgrade autoconf on CentOS? “configure.ac:1: error: Autoconf version 2.69 or higher is required” autoconf is a development tool used to […]
Continue reading…

 

How to disable PackageKit on CentOS, Fedora or RHEL

Question: When I tried to install a package with yum command on [CentOS, Fedora or RHEL], I got the error saying that “Another app is currently holding the yum lock; waiting for it to exit… The other application is: PackageKit”. PackageKit seems starting automatically in the background, interfering with yum command. How can I disable […]
Continue reading…

 

How to compile FFmpeg on CentOS, Fedora or RHEL

Question: How can I compile and build FFmpeg on CentOS, Fedora or RHEL? If you want to use FFmpeg on RPM-based Linux, you can install pre-built FFmpeg package by using yum package manager after enabling additional third-party repositories. However, the version of FFmpeg included in such repositories is typically outdated. If you want to try […]
Continue reading…

 

How to find Ubuntu version and codename in a shell script

Question: I am writing a shell script where I need to obtain the release version and release name (or codename) of Ubuntu system. How can I get Ubuntu version/release name inside a shell script? There are many cases where you need to run some batch processing jobs which can vary across different Ubuntu releases (e.g., […]
Continue reading…

 

How to upgrade gcc on CentOS

Question: The default gcc version on CentOS is too old to build a particular application. How can I upgrade the version of gcc installed on CentOS? As of CentOS 6.5, the default version of gcc installed is 4.4.7. If you want to upgrade gcc on CentOS, you can install devtools, which is a CentOS version […]
Continue reading…

 

How to configure static DNS on CentOS or Fedora

Question: On CentOS, I am getting an IP address assigned by DHCP. However, I want to use public DNS servers (e.g., Google DNS), not those assigned by a DHCP server. In general, how can I configure DNS servers statically on CentOS or Fedora? If you want to hard-code DNS servers to use on CentOS or […]
Continue reading…