Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: Rien on May 05, 2006, 12:30:09 AM
-
Hi all,
In the "Software installer" panel, I see the following yum repositories:
- SME Server - addons
- SME Server - os
- SME Server - updates
- SME Server - updates testing
- SME Server 7 - dungog
- SME Server 7 - dungogMembers
But in /etc/yum.conf I also see the following yum repositories:
[addons]
enabled=0
name=CentOS - addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch
gpgcheck=1
enablegroups=0
[base]
enabled=0
name=CentOS - os
baseurl=http://mirror.centos.org/centos/4/os/$basearch
gpgcheck=1
enablegroups=0
[centosplus]
enabled=0
name=CentOS - centosplus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch
gpgcheck=1
enablegroups=0
[contrib]
enabled=0
name=CentOS - contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch
gpgcheck=1
enablegroups=0
[extras]
enabled=0
name=CentOS - extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch
gpgcheck=1
enablegroups=0
[smedev]
enabled=0
name=SME Server - dev
baseurl=http://mirror.contribs.org/smeserver/releases/7/smedev/$basearch
gpgcheck=1
enablegroups=1
[smetest]
enabled=0
name=SME Server - test
baseurl=http://mirror.contribs.org/smeserver/releases/7/smetest/$basearch
gpgcheck=1
enablegroups=1
[testing]
enabled=0
name=CentOS - testing
baseurl=http://mirror.centos.org/centos/4/testing/$basearch
gpgcheck=1
enablegroups=0
[updates]
enabled=0
name=CentOS - updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch
gpgcheck=1
enablegroups=0
How can I make them visible in the "Software installer" panel?
-
You could try enabling them:
enabled=1
-
Hi Kruhm,
When I enable them with enabled=1 they work, but I can't see them in the software panel. And when I reboot they are automatically set to enabled=0 except the ones I do see in the softwarepanel such as SME server - addons, etc.
So I suppose there must be a way to make them visible and manageble through the softwarepanel.
-
Hi Kruhm,
When I enable them with enabled=1 they work, but I can't see them in the software panel. And when I reboot they are automatically set to enabled=0 except the ones I do see in the softwarepanel such as SME server - addons, etc.
So I suppose there must be a way to make them visible and manageble through the softwarepanel.
After enabling a repo in yum.conf, try:
/sbin/e-smith/expand-template /etc/yum.conf
-
Hi Kruhm,
When I enable them with enabled=1 they work, but I can't see them in the software panel. And when I reboot they are automatically set to enabled=0 except the ones I do see in the softwarepanel such as SME server - addons, etc.
So I suppose there must be a way to make them visible and manageble through the softwarepanel.
After enabling a repo in yum.conf, try:
/sbin/e-smith/expand-template /etc/yum.conf
No don't as this is a configuration file that is based on templates, however all the yum repositories settings are stored in a seperate database called yum_repositories. To show all the settings issue the following command:db show yum_repositories
To change a settingt of a repository entrydb yum_repositories setprop repository property1 value1 [[property2 value2] ... [propertyn valuen]]
(where the square brackets indicate that a value can be entered but is not required, it is merely to modify a lot of properties at once). So to set the sattus of, for instance, the testing repository to enabled we could issue the following command:db yum_repositories setprop testing status enabled
As the configuration file dos not reflect those changes automatically we have to tell the system to regenerate the configuration file:signal-event /etc/yum.conf
To get some more details on how to work with the SME configuration database just issue this command at the propmt db
or see the SME Developer's Guide, section II.5 Configuration database (http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#CONFIG-DATABASE)
-
Hi Cactus,
It has the same effect as enabeling the repositories directly in yum.conf. When I enable a repository the way you pointed out, the repository appears in the softwarepanel, but when I disable that repository in the softwarepanel, the repository disappear from the list.
-
When I enable a repository the way you pointed out, the repository appears in the softwarepanel, but when I disable that repository in the softwarepanel, the repository disappear from the list.
I think the shows it in the list:
enablegroups=1
Isn't that the way it's suppose to work? If not, submit to the bugtracker.
-
Rien
> How can I make them visible in the "Software installer" panel?
db yum_repositories show
db yum_repositories setprop <reponame> status enabled
db yum_repositories setprop <reponame> Visible yes
eg
db yum_repositories setprop addons status enabled
db yum_repositories setprop addons Visible yes
-
Hi Ray Mitchell,
Thanks, that did the trick. It works nicely.