How to Install GParted on CentOS: Resolving “No Package Found” Error and RPM Compatibility


2 views

When you run yum install gparted on CentOS 5 and get "no package found", it's because GParted isn't available in the default repositories. This is a common issue with older CentOS versions where certain packages weren't included in base repos.

The most reliable way to install GParted is through EPEL (Extra Packages for Enterprise Linux):

# First, install EPEL repository
rpm -Uvh http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

# Then install GParted
yum install gparted

Regarding your second question - yes, RPM packages built for RHEL can typically be installed on CentOS 5 since they share the same codebase. However, you should:

  • Check architecture compatibility (x86_64 vs i386)
  • Verify dependency requirements
  • Consider using --nodeps carefully if needed

If EPEL doesn't work for your case, consider these options:

# Method 1: Download specific RPM
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/16/Everything/x86_64/os/Packages/gparted-0.11.0-1.fc16.x86_64.rpm
rpm -ivh gparted-*.rpm

# Method 2: Compile from source
yum groupinstall "Development Tools"
yum install gtkmm24-devel parted-devel
wget https://downloads.sourceforge.net/project/gparted/gparted/gparted-1.3.1/gparted-1.3.1.tar.gz
tar xvf gparted-*.tar.gz
cd gparted-*
./configure
make
make install

After installation, verify it works:

gparted --version
which gparted

If you encounter dependency problems, try:

yum deplist gparted
yum install <missing-dependency>

For particularly stubborn cases, you might need to manually install dependencies or consider upgrading to a newer CentOS version where GParted is more readily available.


When attempting to install GParted on CentOS 5 using yum install gparted, you'll encounter the "no package found" error because GParted isn't available in CentOS's default repositories. This doesn't mean the package is incompatible - it's simply not in the standard repo.

Yes, RPM packages built for RHEL (Red Hat Enterprise Linux) can typically be installed on CentOS 5, as CentOS is essentially a free rebuild of RHEL. The binary compatibility is nearly 100% for the same version.

Method 1: Using EPEL Repository

First, enable EPEL (Extra Packages for Enterprise Linux):

rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install gparted

Method 2: Manual RPM Installation

If EPEL isn't available for your CentOS 5 version, download and install manually:

wget http://some-mirror/path/to/gparted-version.el5.rpm
rpm -ivh gparted-version.el5.rpm

Method 3: Compiling from Source

For ultimate control, consider compiling from source:

yum groupinstall "Development Tools"
yum install gtkmm24-devel parted-devel
wget https://downloads.sourceforge.net/project/gparted/gparted/gparted-1.3.1/gparted-1.3.1.tar.gz
tar xvfz gparted-1.3.1.tar.gz
cd gparted-1.3.1
./configure
make
make install

Common dependencies you might need to install first:

yum install libparted libgtkmm-2.4 libglademm-2.4

After installation, verify with:

rpm -qa | grep gparted
which gparted
gparted --version

If you encounter missing dependencies, use:

yum provides */missing-library.so