Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th December 2007, 03:57 PM
CrasyHorse Offline
Registered User
 
Join Date: Dec 2007
Posts: 6
Angry Creating a YUM-Repository on a Windows FTP-Server

Hi,

I have to create a yum repository based on a windows 2K ftp server (I have no choice using a linux server. I'm ordered to use Windows ). The ftp-Server holds all the necessary RPMs for Fedora 6 and 8. The Problem is that i haven't found a solution for executing createrepo on a windows machine yet.

Does anyone know a proper solution (eventually using cygwin)?

Thanks
Reply With Quote
  #2  
Old 5th December 2007, 04:54 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
Hello if its allowed, you can do it on the linux machine then transfer it to to repo ? not what you want probably, but its the best i can think of at mo. and bumps this thread to the top of the pile again.
Reply With Quote
  #3  
Old 5th December 2007, 06:45 PM
bmvbab Offline
Registered User
 
Join Date: Jun 2005
Location: India
Age: 32
Posts: 376
thats an interesting weekend excersice Windows machine providing packages for linux machines.
Dangermouse's idea is neat and the same that I can think of too.
There is nothing much that is specific to linux in the createrepo results-they are just some simple files-so creating it entirely on linux and moving the files to doze is real easy and simple to do. Use daemon tools to mount the iso on doze.
Reply With Quote
  #4  
Old 6th December 2007, 12:13 AM
Evgen Offline
Registered User
 
Join Date: Oct 2007
Posts: 4
I also want to do this (not my own reposotiry, just copy of Install DVD)

I've tryed:

Repository Manager -> Add
Name: MyFTP
Description: MyFTP
Location: ftp://192.168.201.1/
(/ on ftp - root of Fedora 8 Install DVD)

Press OK -> Exception Occured

Code:
Component: pirut
Summary: TBc5ad12a9 repos.py:98:getRepo:RepoError: Error getting repository data for MyFTP, repository not found

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pirut/RepoSelector.py", line 277, in _add
    return self._repoEditor(None)
  File "/usr/lib/python2.5/site-packages/pirut/RepoSelector.py", line 291, in _repoEditor
    repo = d.run()
  File "/usr/lib/python2.5/site-packages/pirut/RepoSelector.py", line 208, in run
    if self.ayum and self.ayum.repos.getRepo(name):
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 98, in getRepo
    'Error getting repository data for %s, repository not found' % (repoid)
RepoError: Error getting repository data for MyFTP, repository not found

Local variables in innermost frame:
self: ['development', 'updates-debuginfo', 'fedora', 'development-debuginfo', 'updates-source', 'Fedora 8', 'updates-testing-debuginfo', 'updates-testing', 'updates', 'updates-testing-source', 'development-source', 'fedora-source', 'fedora-debuginfo']
e: 'MyFTP'
repoid: MyFTP
What did I do wrong?

Last edited by Evgen; 6th December 2007 at 12:22 AM.
Reply With Quote
  #5  
Old 6th December 2007, 12:51 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello Evgen:
Not clear exactly what you want to do ?
If you just want to create a local repo from your F8 dvd then:
su -
# mkdir /mnt/isofile

# mount -o loop -t iso9660 /home/username/Download/Fedora_8_x86_64_DVD.iso /mnt/isofile

then
su -

# gedit /etc/yum.repos.d/disc_one.repo

PHP Code:
[disc_one]
name=Fedora 8
baseurl
=file:///mnt/isofile
enabled=1
gpgcheck
=1
gpgkey
=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora 
Leave at least one blank line / carriage return after the last line, save and exit.

Then,

# yum clean all
# yum repolist
# yum check-update

and you should see your brand new repo {disc_one} listed.

Or if you don't like this approach you can create your own repo from the iso image and place that repo on your hard drive.
See : How to Create Your Own Yum Repository from ISO Images

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #6  
Old 6th December 2007, 09:59 AM
CrasyHorse Offline
Registered User
 
Join Date: Dec 2007
Posts: 6
Creating a repo on a linux machine and copying it to the Windows FTP doesn't work for me becaus the Windows FTP will get new RPMS every night with wget.

I've downloaded the sources for createrepo and found out that it is a python software. So I will try executing it with Python on Windows. I'll tell you the results of my trail.
Reply With Quote
  #7  
Old 6th December 2007, 01:23 PM
Evgen Offline
Registered User
 
Join Date: Oct 2007
Posts: 4
Hi Seve.

I just want to create a repo from my F8 dvd, located on FTP-server hosted WinXP in my local network.
Change one line in your solution. And it works
# gedit /etc/yum.repos.d/disc_one.repo
PHP Code:
[disc_one
name=Fedora 8 
baseurl
=ftp://192.168.201.1
enabled=
gpgcheck
=
gpgkey
=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora 
But when I try to add this repository via GUI error happens

Last edited by Evgen; 6th December 2007 at 01:31 PM.
Reply With Quote
  #8  
Old 6th December 2007, 09:48 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Quote:
Originally Posted by Evgen
But when I try to add this repository via GUI error happens
Hello:
What is the gui error ?

and does your new repo work from the command line with yum ?

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #9  
Old 7th December 2007, 11:04 AM
Evgen Offline
Registered User
 
Join Date: Oct 2007
Posts: 4
Hi, Seve.
Quote:
Originally Posted by Seve
What is the gui error ?
I wrote about it in forth message in this topic.

Quote:
Originally Posted by Seve
and does your new repo work from the command line with yum ?
# ftp 192.168.201.1
Code:
ftp> ls
227 Entering Passive Mode (192,168,201,1,87,105)
150 Data connection accepted from 192.168.201.2:41378; transfer starting.
drwxr-xr-x   1 ftp      ftp             0 Dec 07 12:57 _111
drwxr-xr-x   1 ftp      ftp             0 Nov 02 17:56 images
drwxr-xr-x   1 ftp      ftp             0 Nov 02 17:54 isolinux
drwxr-xr-x   1 ftp      ftp             0 Dec 05 13:06 Packages
drwxr-xr-x   1 ftp      ftp             0 Nov 02 17:59 repodata
drwxr-xr-x   1 ftp      ftp             0 Nov 02 17:25 repoview
drwxr-xr-x   1 ftp      ftp             0 Nov 02 17:56 stylesheet-images
-rw-r--r--   1 ftp      ftp           109 Nov 02 17:59 .discinfo
-rw-r--r--   1 ftp      ftp           430 Nov 02 17:56 .treeinfo
-rw-r--r--   1 ftp      ftp          2882 Nov 02 17:56 fedora.css
-rw-r--r--   1 ftp      ftp         18363 Nov 02 17:56 GPL
-rw-r--r--   1 ftp      ftp            94 Nov 02 17:59 media.repo
-rw-r--r--   1 ftp      ftp          9680 Nov 02 17:56 README-BURNING-ISOS-en_US.txt
-rw-r--r--   1 ftp      ftp        172530 Nov 02 17:56 RELEASE-NOTES-en_US.html
-rw-r--r--   1 ftp      ftp          1910 Nov 02 17:56 RPM-GPG-KEY
-rw-r--r--   1 ftp      ftp          1706 Nov 02 17:56 RPM-GPG-KEY-beta
-rw-r--r--   1 ftp      ftp          1519 Nov 02 17:56 RPM-GPG-KEY-fedora
-rw-r--r--   1 ftp      ftp          1105 Nov 02 17:56 RPM-GPG-KEY-fedora-rawhide
-rw-r--r--   1 ftp      ftp          1076 Nov 02 17:56 RPM-GPG-KEY-fedora-test
-rw-r--r--   1 ftp      ftp          1232 Nov 02 17:56 RPM-GPG-KEY-rawhide
-rw-r--r--   1 ftp      ftp          4290 Nov 02 17:59 TRANS.TBL
# cat /etc/yum.repos.d/dvd.repo
Code:
[dvd]
name = Fedora 8
baseurl = ftp://192.168.201.1
enabled = 1
gpgcheck = 1
gpgkey = ftp://192.168.201.1/RPM-GPG-KEY-fedora
yum repolist
Code:
repo id              repo name                                 status
dvd                  Fedora 8                                  enabled
#yum install xen
Code:
dvd                       100% |=========================| 2.4 kB    00:00     
...
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 xen                     i386       3.1.0-13.fc8     dvd               2.0 M
Installing for dependencies:
 bridge-utils            i386       1.2-2.fc8        dvd                28 k
 dnsmasq                 i386       2.40-1.fc8       dvd               157 k
 gtk-vnc                 i386       0.2.0-4.fc8      dvd                50 k
 kernel-xen              i686       2.6.21-2950.fc8  dvd                16 M
 libvirt                 i386       0.3.3-2.fc8      dvd               915 k
 libvirt-python          i386       0.3.3-2.fc8      dvd                65 k
 python-virtinst         noarch     0.300.1-3.fc8    dvd               133 k
 virt-viewer             i386       0.0.2-2.fc8      dvd                24 k
 xen-libs                i386       3.1.0-13.fc8     dvd               134 k

Transaction Summary
=============================================================================
Install     10 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 20 M
...
Installed: xen.i386 0:3.1.0-13.fc8
Dependency Installed: bridge-utils.i386 0:1.2-2.fc8 dnsmasq.i386 0:2.40-1.fc8 gtk-vnc.i386 0:0.2.0-4.fc8 kernel-xen.i686 0:2.6.21-2950.fc8 libvirt.i386 0:0.3.3-2.fc8 libvirt-python.i386 0:0.3.3-2.fc8 python-virtinst.noarch 0:0.300.1-3.fc8 virt-viewer.i386 0:0.0.2-2.fc8 xen-libs.i386 0:3.1.0-13.fc8
Complete!
Reply With Quote
  #10  
Old 7th December 2007, 11:14 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
The only repo you have enabled is ?
Quote:
repo id repo name status
dvd Fedora 8 enabled
You should not have to manually add another repo with Pirut, as all the repos you have installed in /etc/yum.repos.d/
should be picked up by Pirut .

Quote:
Component: pirut
Summary: TBc5ad12a9 repos.py:98:getRepo:RepoError: Error getting repository data for MyFTP, repository not found
The repo name has to match what you have configured in your
/etc/yum.repos.d/
or if you have added it to your
/etc/yum.conf

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #11  
Old 7th December 2007, 11:44 AM
Evgen Offline
Registered User
 
Join Date: Oct 2007
Posts: 4
I was confused by presence of button "Add"

Last edited by Evgen; 7th December 2007 at 11:48 AM.
Reply With Quote
Reply

Tags
creating, ftpserver, windows, yumrepository

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a local repository biggsk Using Fedora 3 1st August 2008 12:37 PM
creating a repository Spoondude Servers & Networking 8 13th August 2007 04:11 PM
Creating yum repository question soccerguy53 Using Fedora 8 5th January 2007 07:07 PM
Need help with creating repository from DVD iso. broken_boot Using Fedora 1 31st October 2006 05:16 PM


Current GMT-time: 13:37 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat