Koozali.org formerly Contribs.org

Problème EPEL sur SME 9.2.0 : "epel, repository not found"

Offline STRyk

  • ***
  • 132
Bonjour,
J'ai voulu installer NodeJS grâce à ce lien : https://wiki.contribs.org/NodeJS#tab=For_SME_9
Oui mais voilà, EPEL me pose problème :

Quote
# yum --enablerepo=epel install nodejs
Modules complémentaires chargés : fastestmirror, post-transaction-actions, smeserver

Error getting repository data for epel, repository not found

Savez vous comment s'en sortir ?
Merci.

Offline ReetP

  • *
  • 2,434
Re: Problème EPEL sur SME 9.2.0 : "epel, repository not found"
« Reply #1 on: May 20, 2020, 01:25:41 PM »
Works fine from here so check your epel repo.

Code: [Select]
yum --enablerepo=epel install nodejs
Loaded plugins: fastestmirror, post-transaction-actions, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * epel: mirrors.ircam.fr
 * smeaddons: smeserver.de-labrusse.fr
 * smeextras: smeserver.de-labrusse.fr
 * smeos: smeserver.de-labrusse.fr
 * smeupdates: smeserver.de-labrusse.fr
 * updates: mirror.airenetworks.es
base | 3.7 kB     00:00     
epel | 4.7 kB     00:00     
epel/primary_db | 6.1 MB     00:11     
mc | 1.3 kB     00:00
remi-safe | 3.0 kB     00:00     
remi-safe/primary_db | 1.2 MB     00:01     
smeaddons | 2.9 kB     00:00     
smeextras | 2.9 kB     00:00     
smeos | 3.1 kB     00:00     
smeupdates | 2.9 kB     00:00     
updates | 3.4 kB     00:00     
Package matching nodejs-0.10.48-3.el6.x86_64 already installed. Checking for update.
Nothing to do

However, if you want more up to date versions use the Node repo

https://wiki.contribs.org/User:ReetP
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline STRyk

  • ***
  • 132
Re: Problème EPEL sur SME 9.2.0 : "epel, repository not found"
« Reply #2 on: May 20, 2020, 02:30:53 PM »
Thanks but my epel "repo" still doesn't work ... And I don't know why.
How does this thing work ?

At the end of this :
NodeJS repo (latest is 10)
Quote
db yum_repositories set nodejs8 \
repository Name 'Node JS 8' \
BaseURL https://rpm.nodesource.com/pub_8.x/el/6/x86_64 \
EnableGroups no\
GPGCheck no\
Visible yes\
status disabled
I have an error :
Quote
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
We are not going to get out of it ... :(

If I delete epel RPM on my SME :
Quote
# yum remove epel-release-6-8.noarch -y
# signal-event yum-modify
# db yum_repositories show epel
Nothing : OK.
Install :
Quote
# rpm -ivh epel-release-6-8.noarch.rpm
# db yum_repositories show epel
NOTHING :(

But, now with this here https://wiki.contribs.org/Epel#tab=For_SME_9_x :
Quote
# /sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL6' \
BaseURL 'http://download.fedoraproject.org/pub/epel/6/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL \
Exclude perl-Razor-Agent \
Visible no \
status disabled

# signal-event yum-modify
# db yum_repositories show epel
epel=repository
    BaseURL=http://download.fedoraproject.org/pub/epel/6/$basearch
    EnableGroups=no
    Exclude=perl-Razor-Agent
    GPGCheck=yes
    GPGKey=http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL
    MirrorList=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch
    Name=Epel - EL6
    Visible=no
    status=disabled
Now it's ok...

Well, "epel-release-6-8.noarch.rpm" is too old ?

Now, it's ok for :
Quote
# yum install --downloadonly --downloaddir=SME_v9.2.0_Packages_nodejs --enablerepo=epel nodejs

Thanks (again & again)...

Offline ReetP

  • *
  • 2,434
Re: Problème EPEL sur SME 9.2.0 : "epel, repository not found"
« Reply #3 on: May 20, 2020, 02:56:31 PM »
You do NOT need the epel release rpm. Remember this is SME, not a vanilla CentOS. Things do NOT always work exactly the same. Yum repos are templated. So you need to use the correctly.

Just follow the wiki and add a repo as instructed:

https://wiki.contribs.org/Epel

Reetp Node repo - sorry my fault - I missed some spaces.

Please try it now - I have updated it.

You could try Node 10 or Node 12 - just amend the command eg

Code: [Select]
db yum_repositories set nodejs10 \
repository Name 'Node JS 10' \
BaseURL https://rpm.nodesource.com/pub_10.x/el/6/x86_64 \
EnableGroups no \
GPGCheck no \
Visible yes \
status disabled

Code: [Select]
signal-event yum-modify
Note also you can install 'n' node manager and then swap node versions (I don't really get node at all, but know this much !!)

https://github.com/tj/n
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 2,434
Re: Problème EPEL sur SME 9.2.0 : "epel, repository not found"
« Reply #4 on: May 20, 2020, 02:57:35 PM »
And my apologies - I normally try and translate to French but just don't have the time.... !
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline STRyk

  • ***
  • 132
Re: Problème EPEL sur SME 9.2.0 : "epel, repository not found"
« Reply #5 on: May 20, 2020, 06:39:58 PM »
And my apologies - I normally try and translate to French but just don't have the time.... !
No problem, it's already nice to take time for us.

To concern "Reetp Node repo", I don't understand what it brings. I can now access via epel. :)
Thanks.

Ho... GitHub : another Russian doll !!
Days have passed and I had to do something else.
Now with this accumulation of problems and this Russian doll system, I no longer know why I had to install node...
I will focus on the problem at the beginning. lol

For frenchies:
Pour les Français : utiliser bien ce lien pour SME 9:
https://wiki.contribs.org/Epel#For_SME_9.x
Sélectionnez bien "For SME 9.x"


:)
Résolu !

Solved. Thanks agan ReetP.