Hello there.
I'm new to CentOS and I have a problem for which I didn't find any solution.
I installed successfully CentOS on Hyper-V virtual machine. Now I want to try to install packages from local repo (from the installation DVD).
I used this guide for creating local repo: https://www.tecmint.com/install-gui-in-rhel-centos-7/
I made the dir, mounted the DVD to it (I can see files in the folder), I made the local.repo config (and even tried CentOS-Media.repo), but still yum repolist all show enabled: 0.
Any idea?
Thank you very much
Yum doesn't see Packages from local repo (DVD)
Yum doesn't see Packages from local repo (DVD)
- Attachments
-
- centos.PNG (25.36 KiB) Viewed 1067 times
Re: Yum doesn't see Packages from local repo (DVD)
Show us /etc/yum.repos.d/local.repo (or whatever you called it). Both its contents and its permissions. Also show the stanzas from /etc/yum.repos.d/CentOS-Base.repo for [base] and [updates].
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Yum doesn't see Packages from local repo (DVD)
Hello.
For some reason two attached pictures get lost.
Anyway I found now the cause - problem is that I didn't disable the internet repo and I expected, that it will simply continue to check the next repo
So after using it works.
Well another experience for me and maybe someone will find it useful in future
For some reason two attached pictures get lost.
Anyway I found now the cause - problem is that I didn't disable the internet repo and I expected, that it will simply continue to check the next repo
So after using
Code: Select all
yum --disablerepo=* --enablerepo=local
Well another experience for me and maybe someone will find it useful in future
Re: Yum doesn't see Packages from local repo (DVD)
And that only worked because you had no files in your working directory To be sure, you need to escape the * or bash will expand it before it invokes the command - i.e. --disablerepo=\*
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Yum doesn't see Packages from local repo (DVD)
I see, thanks