You are probably referring to the article
Writing a boot loader in Assembly and C - Part 1[
^].
This is a large site with millions of members and many thousands of them have written articles. If you a have question related to an article use the forum on the bottom of the article first because the author might help better than others.
CentOS is based on Red Hat Enterprise Linux (RHEL) while Ubuntu is based on Debian. If something described for a Debian based Linux distribution is not working with a RHEL based one do a web research first to find out the differences and the corresponding commands / package names etc.
If a package is not found for a distribution, check first for similar names using the distribution's package manager (e.g. searching for "bochs*" in your case). Or search the web for the basic package name and your Linux distribution. If there is no package available you can usually build it from the sources.
It seems that you have to do that because I found only a package for CentOS 6 (
bochs-2.6-3.puias6.i686.rpm CentOS 6 Download[
^]). But visit that link because it lists the required libraries.
Visit the Bochs project site at
Bochs x86 PC emulator download | SourceForge.net[
^] to get the sources and building instructions.
There is also a RPM package at
Bochs x86 PC emulator - Browse /bochs/2.6.9 at SourceForge.net[
^]. So you might try to download and install that first before building it from the sources.