Koozali.org: home of the SME Server

Repo Janitor

Offline cbacani

  • *
  • 111
  • +0/-0
Repo Janitor
« on: January 16, 2007, 06:43:16 PM »
Anyone have a current 'how to' install Repo Janitor? All of the instructions
found so far have outdated links and files.  Thanks

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Repo Janitor
« Reply #1 on: January 17, 2007, 11:56:31 AM »
I use repo janitor but an thinking of changing to repoview to be consistent with contribs.org

http://mirror.contribs.org/smeserver/releases/7.1/smeos/i386/repodata/
http://linux.duke.edu/projects/mini/repoview/

haven't look for a howto yet

jazbokes

Repo Janitor
« Reply #2 on: January 17, 2007, 11:11:24 PM »
How to Install repoview on Smeserver 7.1

1. Create YUM ibay thr Server-manager

2. Create repo directory

#mkdir -p /home/e-smith/files/ibays/yum/html/rpms
#mkdir -p /home/e-smith/files/ibays/yum/html/srpms

3. Copy  rpms & srpms to yum directories

--mount iso file.(centos dvd or smeserver 7.1)

#mkdir -p /mnt/directoryname

#mount -o loop /path/to/file.iso /mnt/directoryname


change to current yum directories

#cp * /home/e-smith/files/ibays/yum/html/rpms
#cp * /home/e-smith/files/ibays/yum/html/rpms

4.  Enable dag repo

#rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

#/sbin/e-smith/db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups 1 GPGCheck 1 Name Dag-repository status disabled

#/sbin/e-smith/expand-template /etc/yum.conf

5. Install createrepo

#yum --enablerepo=base --enablerepo=updates --enablerepo=dag install  createrepo

6. Install repoview

#yum --enablerepo=base --enablerepo=updates --enablerepo=dag install  createrepo

7. Create yum repository

#createrepo /home/e-smith/files/ibays/yum/html/rpms

8. Create yum repository view

#repoview /home/e-smith/files/ibays/yum/html/rpms

9. Access yum repositories

http://192.168.X.X/yum/rpms/repodata

jon

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Repo Janitor
« Reply #3 on: January 17, 2007, 11:50:04 PM »
jazbokes,

Thats fabulous.

Thank You
William.
Regards,
William

IF I give advise.. It's only if it was me....

Offline cbacani

  • *
  • 111
  • +0/-0
Repo Janitor
« Reply #4 on: January 17, 2007, 11:54:22 PM »
Jon,

First, let me say thank you for the work that you have done. I have a few questions.

How to Install repoview on Smeserver 7.1

1. Create YUM ibay thr Server-manager

2. Create repo directory

#mkdir -p /home/e-smith/files/ibays/yum/html/rpms
#mkdir -p /home/e-smith/files/ibays/yum/html/srpms

3. Copy rpms & srpms to yum directories

**** What rpms and what srpms - from what program? Where do you get the program? ****

change to current yum directories

**** why, what will this do? ****

#cp * /home/e-smith/files/ibays/yum/html/rpms
#cp * /home/e-smith/files/ibays/yum/html/rpms

4. Enable dag repo

**** Please explain what this will do. (below) ie: import ****

#rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

#/sbin/e-smith/db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups 1 GPGCheck 1 Name Dag-repository status disabled

5. Install createrepo

#yum --enablerepo=base --enablerepo=updates --enablerepo=dag install createrepo

6. Install repoview

#yum --enablerepo=base --enablerepo=updates --enablerepo=dag install createrepo

7. Create yum repository

#createrepo /home/e-smith/files/ibays/yum/html/rpms

8. Create yum repository view

#repoview /home/e-smith/files/ibays/yum/html/rpms

10. Access yum repositories

http://192.168.X.X/yum/rpms/repodata

Thank you again for all of your help.
Carl

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Repo Janitor
« Reply #5 on: January 18, 2007, 01:03:39 AM »
Quote from: "cbacani"


3. Copy rpms & srpms to yum directories

**** What rpms and what srpms - from what program? Where do you get the program? ****



The rpms and srpms that you wish to allow others to download.
Regards,
William

IF I give advise.. It's only if it was me....

Offline cbacani

  • *
  • 111
  • +0/-0
Error Getting repository data for dag, repository not found
« Reply #6 on: January 18, 2007, 02:19:26 AM »
Quote from: "jazbokes"
How to Install repoview on Smeserver 7.1


4.  Enable dag repo

#rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

#/sbin/e-smith/db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups 1 GPGCheck 1 Name Dag-repository status disabled

jon


Step 4 Bombed out with this error message;

Error Getting repository data for dag, repository not found

Carl

jazbokes

Repo Janitor
« Reply #7 on: January 18, 2007, 03:03:05 AM »
expand yum.conf  template.. by running the below command;

#/sbin/e-smith/expand-template /etc/yum.conf


Jon

Offline cbacani

  • *
  • 111
  • +0/-0
Got past the dogs at the door.
« Reply #8 on: January 18, 2007, 03:34:55 AM »
One last thing.

You don't have permission to access /yum/rpms/repodata/ on this server.

Did I do something wrong?

Carl

Offline cbacani

  • *
  • 111
  • +0/-0
Here is what I did sofar
« Reply #9 on: January 18, 2007, 03:37:52 AM »
How to Install repoview on Smeserver 7.1

1. Create YUM ibay thr Server-manager

2. Create repo directory

#mkdir -p /home/e-smith/files/ibays/yum/html/rpms
#mkdir -p /home/e-smith/files/ibays/yum/html/srpms

3. Copy rpms & srpms to yum directories

--mount iso file.(centos dvd or smeserver 7.1)

#mkdir -p /mnt/directoryname

#mount -o loop /path/to/file.iso /mnt/directoryname


change to current yum directories

#cp * /home/e-smith/files/ibays/yum/html/rpms
#cp * /home/e-smith/files/ibays/yum/html/rpms

4. Enable dag repo

#rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

#/sbin/e-smith/db yum_repositories set dag repository BaseURL http://apt.sw.be/redhat/el4/en/i386/dag EnableGroups 1 GPGCheck 1 Name Dag-repository status disabled

#/sbin/e-smith/expand-template /etc/yum.conf

****  expand yum.conf template.. by running the below command;

#/sbin/e-smith/expand-template /etc/yum.conf

5. Install createrepo

#yum --enablerepo=base --enablerepo=updates --enablerepo=dag install createrepo

6. Install repoview

#yum --enablerepo=base --enablerepo=updates --enablerepo=dag install repoview

7. Create yum repository

#createrepo /home/e-smith/files/ibays/yum/html/rpms

8. Create yum repository view

#repoview /home/e-smith/files/ibays/yum/html/rpms NOTE: No packages available
9. Access yum repositories

http://192.168.X.X/yum/rpms/repodata

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Repo Janitor
« Reply #10 on: January 18, 2007, 04:30:05 AM »
cbacani

Can you explain why you want to install Repoview ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline cbacani

  • *
  • 111
  • +0/-0
Repo Janitor
« Reply #11 on: January 18, 2007, 06:55:44 AM »
Quote from: "william_syd"
cbacani

Can you explain why you want to install Repoview ?


How many times have you 'needed' a certain file and it is no longer on the net? Can't find it - old file and a newer one is available. I started with repo janitor and now using this, the yum files could be visable and my computers could use yum to get what I need on my intranet type setup.

If you have a better idea, please share!

Carl

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Repo Janitor
« Reply #12 on: January 18, 2007, 06:59:45 AM »
Quote from: "cbacani"


If you have a better idea, please share!

Carl


I don't.

However I think you need some RPMS before you install/run repoview.

And you may have to allow FollowSymLinks on your iBay.

Code: [Select]
[root@tiger ~]# db accounts show yum
yum=ibay
    CgiBin=enabled
    FollowSymLinks=enabled
    Gid=5020
    Group=shared
    Name=repo
    PHPRegisterGlobals=enabled
    PasswordSet=no
    PublicAccess=global
    Uid=5020
    UserAccess=wr-group-rd-group
Regards,
William

IF I give advise.. It's only if it was me....

Offline cbacani

  • *
  • 111
  • +0/-0
Thank You
« Reply #13 on: January 18, 2007, 07:09:53 AM »
William,

I thought this was too good to be true. Giving up for now because there is no clear direction to go in. Some ideas are there, but no real idea from me on how to do this. There might be a market in having this type of local update in a business enviroment. Imagine, all computers updated with IT control over all files and yet a shared repository with viewing rights.

Maybe this idea could be taken further or am I off base?

Thank you for your thoughts.
Carl

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Repo Janitor
« Reply #14 on: January 18, 2007, 07:13:20 AM »
Don't give up.

Put some rpms that you want to keep into /home/e-smith/files/ibays/yum/html/rpms and rerun the createrepo and repo view commands.
Regards,
William

IF I give advise.. It's only if it was me....

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Repo Janitor
« Reply #15 on: January 18, 2007, 09:23:12 AM »
Thanks jazbokes

The instructions were a little more complicated than needed as I didn't need to mount an iso or cd. Simplified howto is

enable dag
http://smeserver.sourceforge.net/sme70/sme70/Manual/Chapter18?v=fqv#h1097-7

install createrepo and repoview
Code: [Select]
yum --enablerepo=base  --enablerepo=dag install createrepo repoview

mkdir dungog and  cp files into the directory
Code: [Select]
createrepo dungog
repoview dungog


done

Offline jfarschman

  • *
  • 406
  • +0/-0
Re: Here is what I did sofar
« Reply #16 on: December 13, 2010, 08:59:42 PM »
How to Install repoview on Smeserver 7.1

#createrepo /home/e-smith/files/ibays/yum/html/rpms
#repoview /home/e-smith/files/ibays/yum/html/rpms NOTE: No packages available


Hey Carl, 

Pretty sure you put this behind you, AND I'm running on Redhat 5.5, but I have a problem with no sqlite files found in the repository.  I had to add a -d to my createrepo command.

Code: [Select]
# repoview   /var/www/html/yum/redhat/5.5/x86_64/
Examining repository...Sorry, sqlite files not found in the repository. Please rerun createrepo with a -d flag and try again.
# createrepo -d /var/www/html/yum/redhat/5.5/x86_64/

Home things are going well for you all.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com