I need to download .rpm packages into Windows for some reason. So I cannot use yum for downloading. Virtual machine option is not available either.
Can I download .rpm packages manually? If yes, what should I do? Dependency issue should be solved also.
Concerning your dependencies issues you an use yum deplist [package]
. That will return you a list for the package you listed in the commandline.
You can easily download the rpms once you know the mirrors you got them from if you are up-to-date. Because packages are overwritten regularly with new ones.
If you use CentOS you probably use EPEL repo (confirm with yum repolist
). In that case you can browse : https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/ or https://dl.fedoraproject.org/pub/epel/7Server/x86_64/Packages/ depending on your version.
If it's from a custom repo, you can check in /etc/yum.repos.d/your_repo.conf
and look for the line baseurl. You might find something like : baseurl=http://custom.repo.example.com/pub/7/$basearch
In that case you have to change $basearch by x86_64 most probably. You might also have to change 7 to something else. And you'll be able to access it from any browser (you should go in the Packages directory once there).
Yum repos are basically just served by webservers, so you can browse them easily and find the packages you need.
If you happen to be out-of-date there might be a change that you have a local copy of the package you installed in your yum cache. Run find /var/cache/yum/ -name "your_package_name*.rpm"
and cross fingers that it returns something interesting.
You could copy it from there and transfer it to your Windows machine, using any way you'd like.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments