How to manage packages to be installed in yum, such as gemfile

Asked 2 years ago, Updated 2 years ago, 49 views

Ruby's gem can record the packages required for each project if you have a Gemfile, but
Is there anything like that in yum?

centos

2022-09-30 15:31

1 Answers

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


2022-09-30 15:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.