Koozali.org: home of the SME Server

Software installer panel question

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Software installer panel question
« 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:

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?
Rien
(The Netherlands)......

Offline kruhm

  • *
  • 680
  • +0/-0
Software installer panel question
« Reply #1 on: May 14, 2006, 01:48:34 PM »
You could try enabling them:

enabled=1

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Software installer panel question
« Reply #2 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.
Rien
(The Netherlands)......

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Software installer panel question
« Reply #3 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
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Software installer panel question
« Reply #4 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Software installer panel question
« Reply #5 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.
Rien
(The Netherlands)......

Offline kruhm

  • *
  • 680
  • +0/-0
Software installer panel question
« Reply #6 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.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Software installer panel question
« Reply #7 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
...

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Software installer panel question
« Reply #8 on: May 19, 2006, 09:20:16 PM »
Hi Ray Mitchell,

Thanks, that did the trick. It works nicely.
Rien
(The Netherlands)......