Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: cbacani 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
-
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
-
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
-
jazbokes,
Thats fabulous.
Thank You
William.
-
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
-
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.
-
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
-
expand yum.conf template.. by running the below command;
#/sbin/e-smith/expand-template /etc/yum.conf
Jon
-
One last thing.
You don't have permission to access /yum/rpms/repodata/ on this server.
Did I do something wrong?
Carl
-
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
-
cbacani
Can you explain why you want to install Repoview ?
-
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
-
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.
[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
-
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
-
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.
-
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
yum --enablerepo=base --enablerepo=dag install createrepo repoview
mkdir dungog and cp files into the directory
createrepo dungog
repoview dungog
done
-
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.
# 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.