![]() ![]() However it is not always good, after enabling all repositories yum command begins to report errors something like this:įailure: repodata/ from C-base: No more mirrors to try. ![]() To enable all repositories (I do not suggest to do it): ![]() The “yum-config-manager –enable base” modifies value of “enabled” to one, similar as we did with text editor: Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 ![]() Mirrorlist=$releasever&arch=$basearch&repo=os&infra=$infra for example to enable “base” repository in /etc//CentOS-Base.repo It is possible to enable or disable repositories using yum-config-manager command. Try install genisoimage again and success: you can find where takes it from: Open /etc//CentOS-Base.repo in the text editor and change all “enabled=0” string to “enabled=1”, in other words we enable all repositories defined in /etc//CentOS-Base.repo file. Let check repositories first, the yum repositories are located in /etc/ directory. Loading mirror speeds from cached hostfile The first one is installation of genisoimage: Here two real examples with solving procedures. Yes it is possible that the product you want to install has been discontinued and deleted from all repositories, but it is quite unlikely, probably the repositories are misconfigured or missing. However previously you successfully installed the same package on other CentOS machines without problem. Let us consider the situation that you cannot install some package on CentOS device because the yum command fails with the error “No package available”. This article is related to “ How to edit Mac dmg file on Linux Platform“. For example if you want to install some Microsoft tool on your Linux box you need to created Microsoft repository, if it is well-know Linux tool usually repository enabling can help. The first problem could not be fixed unless it is typo in tool name. If you want to install something using yum for example abracadabra tool but get message “No package abracadabra available” it could mean that abracadabra tool does not exist at all, appropriate repository is not presented on your machine or repository is presented but not enabled. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |