I am fairly new to
Linux, and am more familiar with use of
yum, the latter of course resolves dependencies and installs the whole package. I have primarily used
I am now trying to use an
embedded Linux which is quite basic and only has
yum. I wanted to install
yum, so I could have some flexibility with managing packages, but using
rpm, all I get is a whole bunch of dependencies, some of which I try and resolve, like
python-dnf, before it becomes a never ending list.
Is there an easier way to get
yum installed on my system?
To do this is sample, straight (and boring) process.
First you find where is located package for your distribution and architecture and get the URL. For example for x86_64, CentOS 8 is (one of the mirrors):
Next you need to get dependencies of this package (based on what you have already installed) (to be run as root)
# rpm -q -R http://centos.telecoms.bg/8/AppStream/x86_64/os/Packages/anaconda-184.108.40.206-1.el8.x86_64.rpm /bin/sh /bin/sh anaconda-core = 220.127.116.11-1.el8 anaconda-gui = 18.104.22.168-1.el8 anaconda-install-env-deps = 22.214.171.124-1.el8 anaconda-tui = 126.96.36.199-1.el8 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1
(in above example I use different package)
So you have already
/bin/sh but need
Next you search for the URL of those packages in the repo. And check them one by one for dependencies. After getting all the URLs you create one long line to install all of them. Or install first the prerequisites and then the package.
rpm -i http://centos.telecoms.bg/8/AppStream/x86_64/os/Packages/anaconda-188.8.131.52-1.el8.x86_64.rpm http://centos.telecoms.bg/8/AppStream/x86_64/os/Packages/anaconda-core-184.108.40.206-1.el8.x86_64.rpm http://centos.telecoms.bg/8/AppStream/x86_64/os/Packages/anaconda-gui-220.127.116.11-1.el8.x86_64.rpm http://centos.telecoms.bg/8/AppStream/x86_64/os/Packages/anaconda-install-env-deps-18.104.22.168-1.el8.x86_64.rpm .....