Koozali.org: home of the SME Server

How do I find a contribs repository for a package I need?

Offline LANMonkey

  • ****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
How do I find a contribs repository for a package I need?
« on: March 09, 2016, 08:19:38 PM »
I have had to do a fresh installation of 9.1 and a restore from backup of an old SME server that was updated several time.  I don't recall whether it was 8.x or 9.x.  But now I am finding that the old perl modules I installed in the previous version are not showing up or functioning in the restore.  Reinstalling updated perl packages seem to solve the problem.

So, I need to find a repository for the modules I need.  For example, I am looking for a module HTML::FormatText.  I have found that it is a part of the HTML-Formatter package.  But I don't see any clues at CPAN or Google that would tell me where to find a repository.  Or, if any of the contribs repositories would have it.

https://wiki.contribs.org/Category:Yum_Repository

How do I find a contribs repository for the perl modules I need?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How do I find a contribs repository for a package I need?
« Reply #1 on: March 10, 2016, 01:40:43 AM »
For example, I am looking for a module HTML::FormatText.

Do a google search for 'perl(HTML::FormatText) el6 rpm'.

That will get you to:

https://www.rpmfind.net/linux/rpm2html/search.php?query=perl(HTML%3A%3AFormatText)

which will give you a link to:

ftp://195.220.108.108/linux/centos/6.7/os/i386/Packages/perl-HTML-Format-2.04-11.1.el6.noarch.rpm

That's in the epel repo.

Offline LANMonkey

  • ****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do I find a contribs repository for a package I need?
« Reply #2 on: March 10, 2016, 08:37:30 PM »
Do a google search for 'perl(HTML::FormatText) el6 rpm'.

That will get you to:

https://www.rpmfind.net/linux/rpm2html/search.php?query=perl(HTML%3A%3AFormatText)

which will give you a link to:

ftp://195.220.108.108/linux/centos/6.7/os/i386/Packages/perl-HTML-Format-2.04-11.1.el6.noarch.rpm

That's in the epel repo.

That did it.

I tried yum --enablerepo=epel install perl-HTML-Format  and it worked and I tested it with perl -e "use HTML::FormatText" and that worked.

I followed through with your recommended search and the first result was a link,

https://www.rpmfind.net/linux/rpm2html/search.php?query=perl(HTML%3A%3AFormatText)

And that gave me a list.  I found one that matched your recommended RPM and found that it was for CentOS 6.7 for i386 and so this must be the reason you recommended it.

But how can I determine that this is found in the epel repository and in general, how do I determine where the contribs repository is for packages I manage to find?

And also, what is the source of the language used in the phrase, perl(HTML::FormatText)?


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: How do I find a contribs repository for a package I need?
« Reply #3 on: March 10, 2016, 09:53:18 PM »
LANMonkey

Quote
But how can I determine that this is found in the epel repository and in general, how do I determine where the contribs repository is for packages I manage to find?

Here are popular repos for SME server.
https://wiki.contribs.org/Category:Yum_Repository
You can configure these on your server (with status disabled), & search them directly for packages
ONLY install packages by using the commend line switch --enablerepo=reponame
eg
yum --enablerepo=epel install packagename

If you want unusual packages, you will have to search for them manually,
eg by using rpmfind as Charlie has suggested

If you configure & search the popular repos like epel, dag & remi first you may well find what you want.
ie
yum list available --enablerepo=epel
yum list available --enablerepo=epel packagename
eg
yum list available --enablerepo=epel zmap


You can use yum commands/switches
eg
yum list installed           Lists all packages that are installed on your system.
yum list available   Lists all packages that are available to be installed in all enabled repositories.
yum search string   Searches the package descriptions for the specified string.

See
https://docs.oracle.com/cd/E37670_01/E37355/html/ol_creating_yum_repo.html
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-yum-useful-commands.html
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: How do I find a contribs repository for a package I need?
« Reply #4 on: March 11, 2016, 02:26:12 AM »
Out of curiosity what for did you need this perl module?
If it is a contribs that is in smecontribs 9 hen the package should be there , and if not i have to work on it.

If it is a contrib you installed from a version of sme 8, then i also need to work on importing it, and the dependancies.


A good ressource to search for packages is pkgs.org

Offline LANMonkey

  • ****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do I find a contribs repository for a package I need?
« Reply #5 on: March 11, 2016, 04:58:21 AM »
Out of curiosity what for did you need this perl module?
If it is a contribs that is in smecontribs 9 hen the package should be there , and if not i have to work on it.

If it is a contrib you installed from a version of sme 8, then i also need to work on importing it, and the dependancies.


A good ressource to search for packages is pkgs.org

These are just perl modules that I need for the scripts I run on SME server.  The reason I post this here under 9.x contribs is that I assume that perl modules are SME sensitive, a kind of contrib.  SME has a list of repositories and I assume we are restricted to them.

If this thread more properly belongs to 9.x General, feel free to move it there.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: How do I find a contribs repository for a package I need?
« Reply #6 on: March 11, 2016, 11:50:42 AM »
IIUC you have some perl scripts you wrote on your own, using some perl modules available in rpm format but normally not installed in SME, right?

if so, I'm tempted to move it to development or general discussion

could your scripts be interesting for all of us?

Offline LANMonkey

  • ****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: How do I find a contribs repository for a package I need?
« Reply #7 on: March 11, 2016, 06:07:22 PM »
IIUC you have some perl scripts you wrote on your own, using some perl modules available in rpm format but normally not installed in SME, right?

if so, I'm tempted to move it to development or general discussion

Yes, please do.

could your scripts be interesting for all of us?

I always hope so.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: How do I find a contribs repository for a package I need?
« Reply #8 on: March 11, 2016, 06:08:39 PM »
Moving to general discussion

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: How do I find a contribs repository for a package I need?
« Reply #9 on: March 11, 2016, 06:09:21 PM »
I always hope so.

well, share them with us or, at least, tell us something more about your scripts :-)