Koozali.org: home of the SME Server
Other Languages => Français => Topic started by: STRyk on May 17, 2020, 04:43:12 AM
-
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 :
# 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.
-
Works fine from here so check your epel repo.
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
-
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)
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 :
/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 :
# yum remove epel-release-6-8.noarch -y
# signal-event yum-modify
# db yum_repositories show epel
Nothing : OK.
Install :
# 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 :
# /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 :
# yum install --downloadonly --downloaddir=SME_v9.2.0_Packages_nodejs --enablerepo=epel nodejs
Thanks (again & again)...
-
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
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
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
-
And my apologies - I normally try and translate to French but just don't have the time.... !
-
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.