How To Install pbuilder on CentOS 8
Introduction
In this tutorial we learn how to install pbuilder
on CentOS 8.
What is pbuilder
pbuilder constructs a chroot system, and builds a package inside the chroot. It is an ideal system to use to check that a package has correct build- dependencies.
We can use yum
or dnf
to install pbuilder
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install pbuilder.
Install pbuilder on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install pbuilder
using dnf
by running the following command:
sudo dnf -y install pbuilder
Install pbuilder on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install pbuilder
using yum
by running the following command:
sudo yum -y install pbuilder
How To Uninstall pbuilder on CentOS 8
To uninstall only the pbuilder
package we can use the following command:
sudo dnf remove pbuilder
pbuilder Package Contents on CentOS 8
/etc/pbuilder
/etc/pbuilder/buildd-config.sh
/etc/pbuilderrc
/usr/bin/debuild-pbuilder
/usr/bin/pdebuild
/usr/lib/pbuilder
/usr/lib/pbuilder/pbuilder-apt-config
/usr/lib/pbuilder/pbuilder-buildpackage
/usr/lib/pbuilder/pbuilder-buildpackage-funcs
/usr/lib/pbuilder/pbuilder-checkparams
/usr/lib/pbuilder/pbuilder-createbuildenv
/usr/lib/pbuilder/pbuilder-loadconfig
/usr/lib/pbuilder/pbuilder-modules
/usr/lib/pbuilder/pbuilder-runhooks
/usr/lib/pbuilder/pbuilder-satisfydepends
/usr/lib/pbuilder/pbuilder-satisfydepends-apt
/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude
/usr/lib/pbuilder/pbuilder-satisfydepends-checkparams
/usr/lib/pbuilder/pbuilder-satisfydepends-classic
/usr/lib/pbuilder/pbuilder-satisfydepends-experimental
/usr/lib/pbuilder/pbuilder-satisfydepends-funcs
/usr/lib/pbuilder/pbuilder-satisfydepends-gdebi
/usr/lib/pbuilder/pbuilder-unshare-wrapper
/usr/lib/pbuilder/pbuilder-updatebuildenv
/usr/lib/pbuilder/pdebuild-checkparams
/usr/lib/pbuilder/pdebuild-internal
/usr/sbin/pbuilder
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/pbuilder
/usr/share/doc/pbuilder
/usr/share/doc/pbuilder/AUTHORS
/usr/share/doc/pbuilder/README
/usr/share/doc/pbuilder/README.fedora
/usr/share/doc/pbuilder/THANKS
/usr/share/doc/pbuilder/TODO
/usr/share/doc/pbuilder/examples
/usr/share/doc/pbuilder/examples/B20autopkgtest
/usr/share/doc/pbuilder/examples/B90lintian
/usr/share/doc/pbuilder/examples/B90list-missing
/usr/share/doc/pbuilder/examples/B91debc
/usr/share/doc/pbuilder/examples/B91dpkg-i
/usr/share/doc/pbuilder/examples/B92test-pkg
/usr/share/doc/pbuilder/examples/C10shell
/usr/share/doc/pbuilder/examples/C11screen
/usr/share/doc/pbuilder/examples/D10tmp
/usr/share/doc/pbuilder/examples/D20addnonfree
/usr/share/doc/pbuilder/examples/D65various-compiler-support
/usr/share/doc/pbuilder/examples/D80no-man-db-rebuild
/usr/share/doc/pbuilder/examples/D90chrootmemo
/usr/share/doc/pbuilder/examples/F90chrootmemo
/usr/share/doc/pbuilder/examples/execute_installtest.sh
/usr/share/doc/pbuilder/examples/execute_paramtest.sh
/usr/share/doc/pbuilder/examples/lvmpbuilder
/usr/share/doc/pbuilder/examples/lvmpbuilder/README
/usr/share/doc/pbuilder/examples/lvmpbuilder/STRATEGY
/usr/share/doc/pbuilder/examples/lvmpbuilder/lib
/usr/share/doc/pbuilder/examples/lvmpbuilder/lib/lvmbuilder-checkparams
/usr/share/doc/pbuilder/examples/lvmpbuilder/lib/lvmbuilder-modules
/usr/share/doc/pbuilder/examples/lvmpbuilder/lib/lvmbuilder-unimplemented
/usr/share/doc/pbuilder/examples/lvmpbuilder/lvmbuilder
/usr/share/doc/pbuilder/examples/pbuildd
/usr/share/doc/pbuilder/examples/pbuildd/buildd.sh
/usr/share/doc/pbuilder/examples/pbuildd/hookdir
/usr/share/doc/pbuilder/examples/pbuildd/hookdir/A10dpkg-l.sh
/usr/share/doc/pbuilder/examples/pbuilder-distribution.sh
/usr/share/doc/pbuilder/examples/pbuilder-test
/usr/share/doc/pbuilder/examples/pbuilder-test/000_prepinstall
/usr/share/doc/pbuilder/examples/pbuilder-test/001_apprun
/usr/share/doc/pbuilder/examples/pbuilder-test/002_libfile
/usr/share/doc/pbuilder/examples/pbuilder-test/002_sample.c
/usr/share/doc/pbuilder/examples/pbuilder-test/003_makecheck
/usr/share/doc/pbuilder/examples/pbuilder-test/004_ldd
/usr/share/doc/pbuilder/examples/pbuilder-test/README
/usr/share/doc/pbuilder/examples/pbuilderrc
/usr/share/doc/pbuilder/examples/rebuild
/usr/share/doc/pbuilder/examples/rebuild/README
/usr/share/doc/pbuilder/examples/rebuild/buildall
/usr/share/doc/pbuilder/examples/rebuild/getlist
/usr/share/doc/pbuilder/pbuilder-doc.pdf
/usr/share/man/man1/debuild-pbuilder.1.gz
/usr/share/man/man1/pdebuild.1.gz
/usr/share/man/man5/pbuilderrc.5.gz
/usr/share/man/man8/pbuilder.8.gz
/usr/share/pbuilder
/usr/share/pbuilder/pbuilderrc
/var/cache/pbuilder/ccache
References
Summary
In this tutorial we learn how to install pbuilder
on CentOS 8 using yum and dnf.