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

Title: Software installer panel question
Post by: Rien on May 05, 2006, 12:30:09 AM
Hi all,

In the "Software installer" panel, I see the following yum repositories:
But in /etc/yum.conf I also see the following yum repositories:

Code: [Select]
[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?
Title: Software installer panel question
Post by: kruhm on May 14, 2006, 01:48:34 PM
You could try enabling them:

enabled=1
Title: Software installer panel question
Post by: Rien on May 14, 2006, 07:12:10 PM
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.
Title: Software installer panel question
Post by: chris burnat on May 15, 2006, 02:23:16 AM
Quote from: "Rien"
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
Title: Software installer panel question
Post by: cactus on May 15, 2006, 10:47:31 AM
Quote from: "burnat"
Quote from: "Rien"
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:
Code: [Select]
db show yum_repositories
To change a settingt of a repository entry
Code: [Select]
db 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:
Code: [Select]
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:
Code: [Select]
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
Code: [Select]
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)
Title: Software installer panel question
Post by: Rien on May 17, 2006, 02:07:31 PM
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.
Title: Software installer panel question
Post by: kruhm on May 17, 2006, 02:37:23 PM
Quote
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.
Title: Re: Software installer panel question
Post by: raem on May 17, 2006, 04:38:47 PM
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
Title: Software installer panel question
Post by: Rien on May 19, 2006, 09:20:16 PM
Hi Ray Mitchell,

Thanks, that did the trick. It works nicely.