no yum repositories in minimal-installation

Issues related to applications and software problems
Post Reply
adust
Posts: 3
Joined: 2014/11/06 17:13:39

no yum repositories in minimal-installation

Post by adust » 2014/11/06 17:31:16

Greetings,

my Problem is, that there's no repository in my minimal-installation and i can't find out how to put in the standard-repo.
I tried epel and ius, but i can't find many packages like boost-devel gcc-c++ mysql-devel,...
I hoped it would just work (yes, I'm a noob, but i'm trying to become better).

When I look which repos are enabled: (translated)

Code: Select all

# yum repolist all
loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repolist: 0
I looked up my /etc/yum.repos.d/ and it's just empty.
Re-installing the System doesn't seem to make any difference.
I know that I can add repos with "rpm -Uvh" but I just can't find out the path(s?) of the standard-repos.

Hope someone can tell me how to find those urls. I can't find them in the wiki, too.
http://wiki.centos.org/de/AdditionalRes ... ositories/

Thanks,
Alex

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: no yum repositories in minimal-installation

Post by avij » 2014/11/06 18:22:58

How did you install CentOS? Which disk image? Did you use the official CentOS .iso images or something that your ISP has provided? All CentOS installations should have the appropriate repo definition files in /etc/yum/repos.d by default.

adust
Posts: 3
Joined: 2014/11/06 17:13:39

Re: no yum repositories in minimal-installation

Post by adust » 2014/11/07 09:02:10

Thanks for the quick answer.

I used the iso from ftp://mirror.fraunhofer.de/centos.org/7 ... os/x86_64/
It is linked from this site: http://isoredirect.centos.org/centos/7/isos/x86_64/ so it should be an official.
It's a network-install, as installation source i used http://mirror.centos.org/centos/7.0.1406/os/x86_64/.

When I was asked wich packages I'd like to install, I took "minimal installation", but there's no repositories i could get my packages from.
I don't think that it's correct that even the repos have to be installed manually, but even though - I can't find out the URL.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: no yum repositories in minimal-installation

Post by avij » 2014/11/07 10:36:22

This is odd. I just made a minimal installation (netinstall) as a test, and the centos-release package got installed. The repository config files are included in that package.

Please make sure you have the centos-release package installed by running rpm -q centos-release. If it shows that it is installed, run rpm -V centos-release to see what rpm thinks about the installed repo files.

If you do not have centos-release installed, the following should get it installed:

Code: Select all

yum install http://mirror.centos.org/centos/7.0.1406/updates/x86_64/Packages/centos-release-7-0.1406.el7.centos.2.5.x86_64.rpm
You can also try 'reinstall' instead of 'install' to restore the repo files, if they have been deleted for some reason after the install of centos-release.

adust
Posts: 3
Joined: 2014/11/06 17:13:39

Re: no yum repositories in minimal-installation

Post by adust » 2014/11/07 19:17:53

With rpm -q centos-release it tells me centos-release-7-0.e17.0.140617.3.x86_64
rpm -V centos-release does nothing visible.
When I look for repolist it's still filled with epel, ius and remi but no new/standard repos.

After that I tried to reinstall the repo with

Code: Select all

yum reinstall http://mirror.centos.org/centos/7.0.1406/updates/x86_64/Packages/centos-release-7-

0.1406.el7.centos.2.5.x86_64.rpm
but that didn't work either.

I tried installing it again and this time it worked.
I looked for my mistake and found this:
On my first try I got to this page: http://blog.dinotools.de/images/gallery ... ase-07.png
I think I overread the "pre-release" both times and took http://buildlogs.centos.org/centos/7/os/x86_64-latest as my installation source.
Because of the "-latest" I thought it would be the actual version of CentOS and so the ratrace began..
Now all the repos are where they should be.

I'm very sorry but maybe someone has made the same mistake and finds this thread :oops:

Thank you very much for your help.

Post Reply