Koozali.org: home of the SME Server

Repositories

Offline openSUSEftw

  • *
  • 12
  • +0/-0
Repositories
« on: April 09, 2010, 02:39:25 AM »
OK, so I've given SME a chance but it insists on continually getting in my way. I ran into package dependency problems (shame on you, maintain a repo properly or not at all >:/ It just makes my life difficult) so I thought "hey, YUM should be able to exclude packages". So I read the man page and sure enough, --exclude=packagename* should do it for me on the command line or I can add it to my yum.conf file. Sweet. I edited the /etc/yum.conf file:
Code: [Select]
#/etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
distroverpkg=centos-release
exactarch=1
http_caching=packages
installonlypkgs=kernel kernel-hugemem kernel-largesmp kernel-smp kernel-xenU
logfile=/var/log/yum/yum.log
obsoletes=1
plugins=1
reposdir=/etc/yum.smerepos.d
tolerant=1
exclude=postfix* liblber* libldap* libddb*
Which I thought would be fine, I'd get everything I could up to date that I could get up to date, but lo and behold
Code: [Select]
[root@server ~]# yum -t -c /etc/yum.conf update
...
...
...
--> Processing Dependency: libdb-4.2.so for package: postfix
--> Processing Dependency: libldap-2.2.so.7 for package: postfix
--> Processing Dependency: liblber-2.2.so.7 for package: postfix
--> Finished Dependency Resolution
Error: Missing Dependency: liblber-2.2.so.7 is needed by package postfix
Error: Missing Dependency: libldap-2.2.so.7 is needed by package postfix
Error: Missing Dependency: libdb-4.2.so is needed by package postfix

Am I doing something wrong, or is yum screwed?

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: Repositories
« Reply #1 on: April 09, 2010, 02:51:56 AM »
You have not stated what you are trying to achieve nor are you showing any of the error messages you are getting before you started to fidle with the yum configuration file or described anything about your system configuration.
Adelaide - Australia

Offline openSUSEftw

  • *
  • 12
  • +0/-0
Re: Repositories
« Reply #2 on: April 09, 2010, 02:54:08 AM »
I ran yum update on an SME 7.something box. That is it. Same errors occurred even before I touched anything in the config file

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Repositories
« Reply #3 on: April 09, 2010, 03:14:52 AM »
openSUSEftw

Please do not criticise the maintenance of repos, they are well mainted to my knowledge in accordance with sme requirements.
It appears to be a problem of your own creating, or should I say misunderstanding.

You probably need to configure and enable the dag repo (or wherever the required packages are maintained).
Note that sme protocol is to use the --enablerepo=reponame switch on the command line when using yum, so packages are downloaded once only from that repo.


You appear to have installed postfix, correct ?
I don't think that is recommended on sme server, and will likely break things or certainly need a lot of work to properly integrate it.

You need to enable suitable repositories that have the dependency rpms (refer above comments).

PLEASE read the FAQs and other info about how to correctly use sme server and change configuration at the command line, and get to understand yum. It is different to other Linux distros, and you cannot just go changing config files directly.

See all the links at the top of the forums page.
In particular, for starters, see
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Yum_Updates
and
http://wiki.contribs.org/Category:Yum_Repository
and
http://wiki.contribs.org/Template_Tutorial

and many more.

I should also add to read up on the db commands concept, unique to sme server AFAIK.
Start here
http://wiki.contribs.org/Db_command_tutorial
and
http://wiki.contribs.org/DB_Variables_Configuration
and not limited to the commands mentioned therin.
See the template fragment code for ALL possibilities.

For a deeper understanding see
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
« Last Edit: April 09, 2010, 03:23:07 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Repositories
« Reply #4 on: April 09, 2010, 03:40:24 AM »
Am I doing something wrong, or is yum screwed?

You are doing multiple things wrong.

Firstly, 'excludes' is a per-repository setting.

Secondly, you are ignoring the fine text at the top of yum.conf which tells you not to edit that file.

Thirdly you are ignoring the fine text which is shown to you when you post on this forum:

 Don't report problems here - Please report bugs and potential bugs in the bug tracker

Fourthly, you are biting the hand that feeds you with your complaints.

Have a nice day :-)

Offline openSUSEftw

  • *
  • 12
  • +0/-0
Re: Repositories
« Reply #5 on: April 09, 2010, 03:53:13 AM »
Quote
You are doing multiple things wrong.
Usually the way with Linux, I avoid RedHat distros like the plague because there seems to be more room for error >.>

Quote
Secondly, you are ignoring the fine text at the top of yum.conf which tells you not to edit that file.
Yeah, I know. I really didn't care if it reverted it as I just wanted to get the system to a reasonable level of up-to-dateness and could worry about a more permanent fix later

Quote
Thirdly you are ignoring the fine text which is shown to you when you post on this forum:

 Don't report problems here - Please report bugs and potential bugs in the bug tracker
Not a really a bug, especially if it's my error, which I was reasonably sure I was doing something wrong with the excludes anyway
Quote
Fourthly, you are biting the hand that feeds you with your complaints.
Thankfully I don't eat a lot :P I just really don't like whoever configured this server in the first place because they did a fine job of stuffing it royally. I can't help but wonder if a different distro like Debian, Ubuntu or my pet openSUSE would have lessened this effect

Quote
You appear to have installed postfix, correct ?
I don't think that is recommended on sme server, and will likely break things or certainly need a lot of work to properly integrate it.

I didn't set this one up. And besides, postfix works the way it's supposed to, it's just these dependencies problems that are putting me off

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Repositories
« Reply #6 on: April 09, 2010, 04:29:00 AM »
Please ignore the troll everybody.

Offline openSUSEftw

  • *
  • 12
  • +0/-0
Re: Repositories
« Reply #7 on: April 09, 2010, 04:34:40 AM »
No, feed it with wiki links >8D As much as I don't like SME I'm stuck with it for the time being. I may as well learn how to use it properly

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Repositories
« Reply #8 on: April 09, 2010, 09:26:07 AM »
No, feed it with wiki links >8D As much as I don't like SME I'm stuck with it for the time being. I may as well learn how to use it properly
Then please adept your attitude and start reading up on the concept of SME Server. It is not your basic linux system and certainly not a default linux workstation like Debian and Ubuntu. It is a server solution that has a management interface so management can be done more easily without (too much) linux knowledge. Configuration files are templated for that cause as well as a event system is implemented that will fire of the correct actions when configuration changes are made.

If you are that good with linux you can easily replicate the setup on another distribution yourself at the cost of more administrative work. You are free to use SME Server, you are also free to suggest options, improvements and even criticize, but all in the light of the scope SME Server was designed and geared for please.

If you would like to compare SME Server to other linux based solutions you are better of comparing it to ClearOS, ClarkConnect. Ubuntu and Debian are oranges compared to the fine apple SME Server is for a lot of users, although it might not fit you.
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 openSUSEftw

  • *
  • 12
  • +0/-0
Re: Repositories
« Reply #9 on: April 09, 2010, 09:53:00 AM »
Quote
Then please adept your attitude and start reading up on the concept of SME Server. It is not your basic linux system and certainly not a default linux workstation like Debian and Ubuntu. It is a server solution that has a management interface so management can be done more easily without (too much) linux knowledge. Configuration files are templated for that cause as well as a event system is implemented that will fire of the correct actions when configuration changes are made.
Ok, I'll bite. Debian is a generic distro and Ubuntu has a few different flavours to choose from, including but not limited to a server edition which ships without an X server and a netbook variety which is slimmed down (I'd argue not enough, but then again I strip all my systems down to basics). OpenSUSE's YaST panel also provides full fledged GUI control of the system and has auto configuration signals as well. SME's web interface, while nice, has a way to go before being as useful as YaST (and let's face it, if you're running a server you want it deployed properly and will get someone in who knows what they're doing, I'd even argue that deployment should be confusing if you don't know what you're doing).

Quote
If you are that good with linux you can easily replicate the setup on another distribution yourself at the cost of more administrative work.
I would, but
A) It's not my server
B) The client is unprepared to pay to have it moved to something else

Quote
If you would like to compare SME Server to other linux based solutions you are better of comparing it to ClearOS, ClarkConnect. Ubuntu and Debian are oranges combined to the fine apple SME Server is for a lot of users, although it might not fit you.
Because I can achieve exactly the same thing using Debian or Ubuntu on top of deploying something like webmin :/ I think it's an entirely fair comparison

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Repositories
« Reply #10 on: April 09, 2010, 11:25:55 AM »
openSUSEftw

Your business problems & decisions are not our concern.

Any unfamiliar system is difficult to use initially.
So just start reading and learning, and as you seem to be Linux competent, then very quickly you will realise how good and easy sme server is to use and administer.
You have no choice but to learn about sme, as you say.
Whinging about something you don't understand (ie sme server) is usually just a waste of time, which is better spent reading the wiki articles.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline openSUSEftw

  • *
  • 12
  • +0/-0
Re: Repositories
« Reply #11 on: April 09, 2010, 11:44:13 AM »
Quote
Your business problems & decisions are not our concern.
I didn't ask for your opinion on them :/

Quote
So just start reading and learning, and as you seem to be Linux competent, then very quickly you will realise how good and easy sme server is to use and administer.
I'm more of a fan of fire and forget. I don't mind spending 30 hours setting up a server if I don't have to touch it for the next year. Must be the engineer in me :/

Quote
You have no choice but to learn about sme, as you say.
But one would think that being CentOS derived means it behaves similarly to CentOS. SME is a completely different beast from out of left field

Quote
Whinging about something you don't understand (ie sme server) is usually just a waste of time
And so is feeding the trolls :P

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Repositories
« Reply #12 on: April 09, 2010, 01:49:07 PM »
Please stop feeding the troll, people.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Repositories
« Reply #13 on: April 09, 2010, 01:53:15 PM »
SME is a completely different beast from out of left field
Nope... IMHO it is not. It just has another shell around it between the base OS (CentOS) and the operator (you in this case), which you need to familiarize yourself with.
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 openSUSEftw

  • *
  • 12
  • +0/-0
Re: Repositories
« Reply #14 on: April 09, 2010, 02:35:47 PM »
Quote
Nope... IMHO it is not. It just has another shell around it between the base OS (CentOS) and the operator (you in this case), which you need to familiarize yourself with.

Then why bother with the whole distro? :/ Why not just compartmentalize the whole web (and curses, yes, I noticed it too) front end and distribute it separately with different component plugins? If what you said is the case, then all you're doing is creating work for yourself and maybe you should rethink about the effort you're putting in :/

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Repositories
« Reply #15 on: April 09, 2010, 05:26:18 PM »
Please do not feed the troll.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Repositories
« Reply #16 on: April 09, 2010, 07:10:42 PM »
Locking thread.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!