Koozali.org formerly Contribs.org

[Solved] How do I expand my list of yum repositories? (find perl module)

I am looking for a perl module that is not installed, as near as I can tell, HTML::TreeBuilder.

I've tried "yum list perl-HTML-TreeBuilder" which seems to be suggested by the modules that are installed and I don't see it.

How do I find and search the yum repositories that are not included by default and use them to find and install this other module or any other perl module I might need?  I have done some searching at the forum and I think I understand correctly that you do not use CPAN on SME server.  ppm is apparently not installed.  Are there other repositories that might damage SME server?

This is for SME8, but I'm sure its relevent to SME 7.x
« Last Edit: June 21, 2010, 11:14:40 PM by LANMonkey »

Offline janet

  • ****
  • 4,812
LANMonkey

Perhaps rpmfind.net has what you want, or search google
http://fr2.rpmfind.net/linux/rpm2html/search.php?query=perl-HTML-TreeBuilder&submit=Search+...

yum list will search the enabled repos on your SME server.
You need to add repos to your repository database. See
http://wiki.contribs.org/Category:Yum_Repository

Do not enable those additional repos or you are likely to have problems with standard updating.
Only add repos that have packages suitable for the OS ie SME 8

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Thanks for your reply.

The link to the Yum Repository category is found here:

http://wiki.contribs.org/SME_Server:Documentation:FAQ

And more precisely, here:

http://wiki.contribs.org/SME_Server:Documentation:FAQ#Yum_Updates

I think I understand correctly that it is possible to "enable" the repository as being in some kind of local list withou it being "enabled" for updates.  This is a distinction that should really be better highlighted.  The commands for doing either one contribute to the confusion.

From mary's provided link:

Quote
Warning:
 
Be sure to never set the status of one of these repositories to enabled as this imposes the risk of installing newer versions SME Server core packages which might break your server. If you want to install software from them you can enable them using the SME Server shell and the yum option --enablerepo=reponame. Consider installing Yum-plugin-priorities 


If I can find my perl-HTML-TreeBuilder somewhere searching RPMs, (perl-HTML-TreeBuilder-XPath is not what I'm looking for.) how can I find a yum repository with the same file?  Or, once I have a yum repository "enabled", how do I search just that repository?  Or, can I search the yum repositories without "enabling" them?

Perhaps there is some documentation on yum somewhere that could clarify this.

At this link,

http://wiki.contribs.org/SME_Server:Documentation:FAQ#General

there are some links to documentation on yum and more information at contribs:

http://yum.baseurl.org/

http://wiki.contribs.org/Adding_Software

This is the second time I have had to struggle with the yum repositories,

http://forums.contribs.org/index.php/topic,43566.msg207771.html#msg207771

Offline Stefano

  • *
  • 10,805
  • Skype account: maghissimo
    • Smeserver italian community
Lanmonkey, the rpm you are looking for is available in Dag's repo

just adapt the wiki instructions for rhel5

anyway, adding and, generally speaking, working with repos is well documented in the documentation, no need to struggle at all
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Lanmonkey, the rpm you are looking for is available in Dag's repo

just adapt the wiki instructions for rhel5

anyway, adding and, generally speaking, working with repos is well documented in the documentation, no need to struggle at all

How did you determine that HTML-TreeBuilder is in the Dag repository?

Offline janet

  • ****
  • 4,812
LANMonkey

Quote
How did you determine that HTML-TreeBuilder is in the Dag repository?

Manually search
see
http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/
and
http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/


Alternatively after adding the dag repo details to the repository database, then you can do
yum list --enablerepo=dag |more

Configure the correct repo details for el4 or el5 packages though.

I do not see that rpm in either of the abovementioned dag repos, I only see
perl-HTML-Tree
and
perl-HTML-TreeBuilder-XPath

so you may need to search other repos.
« Last Edit: June 21, 2010, 04:31:30 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

I installed perl-HTML-Tree and perl-HTML-TreeBuilder-Xpath and tried the command:

Code: [Select]
perl -e "user HTML::TreeBuilder"
It ran with no errors and so I imagine that despite documentation suggesting otherwise, "Abstract -- add XPath support to HTML::TreeBuilder", it doesn't just add XPath support to previously installed TreeBuilder, but in fact, installs TreeBuilder as well.

Problem solved.

Offline janet

  • ****
  • 4,812
LANMonkey

Just out of interest why did you need this ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

I am migrating a site to my SME server.  The perl scripts I once ran on a local host to support a remote site are now going to be ran on the SME server itself.  In addition, I am upgrading the old site and its operations because I am much more experienced coding than I was when I first created the old operation.  That's my motivation.

But perhaps you want more technical details.  I am trying to convert HTML files to text files and these modules are what is in my old code.

Is that what you wanted to know?  You deserve an answer.

Offline janet

  • ****
  • 4,812
LANMonkey

Quote
I am trying to convert HTML files to text files and these modules are what is in my old code

OK
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mmccarn

  • *
  • 2,567
How did you determine that HTML-TreeBuilder is in the Dag repository?

Code: [Select]
yum --enablerepo=dag whatprovides perl-HTML-TreeBuilder

Offline byte

  • *
  • 2,183
Moving this topic to the General Discussion forum, it is more appropriate there. Thanks
--[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!

Perl modules are installed just like other software through yum.
« Reply #14 on: August 06, 2010, 12:24:21 AM »
I am back again, using this thread as a reference.

I needed to install another perl module, Statistics::Descriptive

I came back here, sorted through the thread for clues as to what to do next.  Went to the link to the dag repository and searched for "statistics" and found the perl-Statistics-Descriptive file.  The actual file name is longer, but "perl-Statistics-Descriptive" is all you need.

In SME at the command line:

Code: [Select]
yum --enablerepo=dag install perl-Statistics-Descriptive
This got the correct response from yum.  Running my script shows the module was installed correctly.

This post is for reference only, no replies are necessary.

Back again 6 years later to apply the above posts.

A reinstall of the server from backup does not include this package.

The little Dell Optiplex GX260 small form that hosted SME server finally died.  The SME server has been reliable as gravity all this time.

See www.ictytranscripts.org to see what is being hosted.



« Last Edit: March 09, 2016, 06:48:35 PM by LANMonkey »


A reinstall of the server from backup does not include this package.

The little Dell Optiplex GX260 small form that hosted SME server finally died.  The SME server has been reliable as gravity all this time.

It's a good idea to store the rpms of any contribs or add-ons in an i-bay, so that they are included in the backup, and are available post-restore for re-installation.

Offline Stefano

  • *
  • 10,805
  • Skype account: maghissimo
    • Smeserver italian community
It's a good idea to store the rpms of any contribs or add-ons in an i-bay, so that they are included in the backup, and are available post-restore for re-installation.

storing single rpms are tedious and prone to errors..

I suggest we include in the backup a list of installed contribs
Code: [Select]
yum list 'smeserver-*' | grep '@smecontribs' > contribs_list
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

I suggest we include in the backup a list of installed contribs

Not a bad idea, but doesn't solve OP's problem, that he needs a particular old rpm which he now can't find.

LANMonkey, rather than post to this [SOLVED] thread about yum repositories, perhaps you should start a new thread about the elusive perl module rpm which you are seeking (again).

I am looking for a perl module that is not installed, as near as I can tell, HTML::TreeBuilder.

Maybe you should be looking for perl-HTML-Tree:

http://search.cpan.org/~cjm/HTML-Tree-5.03/lib/HTML/TreeBuilder.pm

This might be good for you:

ftp://rpmfind.net/linux/RPM/atrpms/el5/x86_64/stable/perl-HTML-Tree-3.18-6.0.el5.noarch.html
« Last Edit: March 08, 2016, 08:45:59 PM by CharlieBrady »


Thanks for posting, but that was an old problem, long ago resolved.

That's what you get for hijacking a thread... :-)

FYI, there is no Dag repo for el6. That's probably got something to do with your problem.

...

FYI, there is no Dag repo for el6. That's probably got something to do with your problem.

Actually, I think there is.  I'm giving it a try.

https://wiki.contribs.org/Dag#tab=For_SME_9


Actually, I think there is.

You are right. For some reason it is not showing up in rpmfind searches.