In these cases, I perform a quick check for the package on RPMFind.net and rpm.pbone.net. If neither return a result for my distribution, chances are that a precompiled RPM is not available.
You can compile log4cxx from the Fedora source repository, though.
In order to build an SRPM, you'll pretty much need to download the .srpm or .src.rpm file. From there, you can run rpmbuild --rebuild filename.src.rpm
and the compilation process should result in a usable binary package.
I took a spare CentOS 6 system and ran the download using this log4cxx source RPM package and compiled:
There was a dependency on apr-devel
and apr-util-devel
, but aside from that, the log4cxx built without incident.
# rpmbuild --rebuild log4cxx-0.10.0-13.fc18.src.rpm
.
.
...fancy compilation output...
.
.
Wrote: /root/rpmbuild/RPMS/x86_64/log4cxx-0.10.0-13.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/log4cxx-debuginfo-0.10.0-13.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/log4cxx-devel-0.10.0-13.el6.x86_64.rpm
From there, install the resultant RPM's and you're good to go.
Best Answer
The
subscription-manager
tool is Red Hat-specific, allowing you to manage Red Hat subscriptions. Since CentOS doesn't have subscriptions, CentOS 6 omitted this tool.CentOS 7 now includes
subscription-manager
, which you can use with Red Hat Satellite or its open source versions Spacewalk or Foreman/Katello.