Ruby's gem can record the packages required for each project if you have a Gemfile, but
Is there anything like that in yum?
I don't know if it fits your question, but when you create a package with Yum (or rpm), you can have dependencies on the package.
For example, yum dependencies can be verified as follows:
#rpm-qRyum
/usr/bin/python
config(yum) = 3.2.29-69.el6.centos
pygpgme
python>=2.4
python(abi) = 2.6
python-iniparse
python-sqlite
python-urlgrabber>=3.9.0-8
rpm > = 0: 4.4.2
rpm-python
rpmlib (CompressedFileNames) <=3.0.4-1
rpmlib (FileDigests) <=4.6.0-1
rpmlib (PartialHardlinkSets) <=4.0.4-1
rpmlib (PayloadFilesHavePrefix) <= 4.0-1
rpmlib (VersionDependencies) <=3.0.3-1
yum-metadata-parser>=1.1.0
yum-plugin-fastestmirror
rpmlib (PayloadIsXz) <= 5.2-1
When you create RPM, you create a spec
file that describes dependencies, where Requires
is the package you need to install, and BuildRequires
is the package you need to build.
Requires:bash
BuildRequires:autoconf automake gzip
© 2024 OneMinuteCode. All rights reserved.