Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Community Lounge > Reviews, Rants & Things That Make You Scream
FedoraForum Search

Forgot Password? Join Us!

Reviews, Rants & Things That Make You Scream The place for you to submit reviews of all those applications you use with Fedora. The Devs probably aren't listening, but some times you've just GOT to blow off steam or sing its praises.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th April 2012, 01:54 PM
freedomvikrant Offline
Registered User
 
Join Date: Apr 2012
Location: shimla(himachal pradesh ) india
Posts: 9
windows_7chrome
Cool Yum server of fedora 16

hi there!!!!!!

actually iam able to configure yum server on fedora 13 but it is not working on fedora 16

in fedora 13 i can do it in the following manner:---

firstly i copied all the rpm packages to the any folder say rpm
then i made repo file
after that i went inside the rpm folder then type this cmd rpm -ivh createrepo*
after that i came out of the rpm folder
then type the following cmd createrepo -v /rpm
above procedure works on fedora 13 but onfedora 16 it shows some errors

okey sir,i will try in this manner

sir/mam

i wnat to tell that i can configure a yum server on the fedora 13 but on fedora 16 i cant configure
what is the difference ????



it shows some following erros----------------------------

first errors::::::::::::::::::::::::::::::::::this thing was taking so much time)


[root@localhost /]# createrepo -v /rpm [here rpm is the folder name where i copied all rpm pcakages]
Spawning worker 0 with 3117 pkgs
Worker 0: reading fedora-easy-karma-0-0.15.20110825git36efb338.fc16.noarch.rpm



second errors:::::::::::::::::::::::::::::::::::::::::::: :::



[root@localhost /]# yum install ftp*
Loaded plugins: langpacks, refresh-packagekit
file:///rpm/repodata/repomd.xml: [Errno 14] Could not open/read file:///rpm/repodata/repomd.xml
Trying other mirror.
file:///rpm/repodata/repomd.xml: [Errno 14] Could not open/read file:///rpm/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora.repo. Please verify its path and try again



this is my repo file::::::::::::::::::::::::::::



[fedora.repo]
name=myrepo
baseurl=file:///rpm
enabled=1
gpgcheck=0
~
~

actually i had wasted three weeks on this thing i already posted some thread regarding this problem even i use fedora documentation but nothing is working

plzzzzzzzz tell me this time that iam layman(this is because iam loosing confidence ) yet iam computer engineering student .


things which seems odd to me :----------
------------------------------------------------------------------------------------------------------------------------
firstly i copied all rpm packages from fedora dvd under packages folder to /rpms(this is the folder which i created)
then i issued a cmd :---rpm -ivh createrepo*
it goes well

---------------------------------------------------------------------------------------------------------------------------
then just outside of that folder i issued another cmd :- createrepo -v /rpms

it shows some following output:--

Spawning worker 0 with 3117 pkgs
Worker 0: reading gnome-power-manager-3.2.1-1.fc16.i686.rpm


it only create repodata folder under rpms folder and if i open (repodata) then it is empty it is ongoing process

but if u press ctrl+c to break this process it shows some following errors:--


^CTraceback (most recent call last):
File "/usr/share/createrepo/genpkgmetadata.py", line 275, in <module>
main(sys.argv[1:])
File "/usr/share/createrepo/genpkgmetadata.py", line 249, in main
mdgen.doPkgMetadata()
File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 395, in doPkgMetadata
self.writeMetadataDocs(packages)
File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 640, in writeMetadataDocs
line = job.stderr.readline()
KeyboardInterrupt

i did this because nothing was going on

--------------------------------------------------------------------------------------------------------------------------
to get rid of above problem i copied repodata folder from the fedora dvd and paste it under rpms


okey now i issued another cmd :==yum install httpd*

it shows following output:--

Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i686 0:2.2.21-1.fc16 will be installed
--> Processing Dependency: libaprutil-1.so.0 for package: httpd-2.2.21-1.fc16.i686
--> Processing Dependency: libapr-1.so.0 for package: httpd-2.2.21-1.fc16.i686
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.21-1.fc16.i686
---> Package httpd-devel.i686 0:2.2.21-1.fc16 will be installed
--> Processing Dependency: apr-util-devel for package: httpd-devel-2.2.21-1.fc16.i686
--> Processing Dependency: apr-devel for package: httpd-devel-2.2.21-1.fc16.i686
---> Package httpd-manual.noarch 0:2.2.21-1.fc16 will be installed
---> Package httpd-tools.i686 0:2.2.21-1.fc16 will be installed
--> Running transaction check
---> Package apr.i686 0:1.4.5-1.fc16 will be installed
---> Package apr-devel.i686 0:1.4.5-1.fc16 will be installed
---> Package apr-util.i686 0:1.3.12-1.fc16 will be installed
---> Package apr-util-devel.i686 0:1.3.12-1.fc16 will be installed
--> Processing Dependency: db4-devel for package: apr-util-devel-1.3.12-1.fc16.i686
--> Processing Dependency: expat-devel for package: apr-util-devel-1.3.12-1.fc16.i686
--> Processing Dependency: openldap-devel for package: apr-util-devel-1.3.12-1.fc16.i686
---> Package apr-util-ldap.i686 0:1.3.12-1.fc16 will be installed
--> Running transaction check
---> Package db4-devel.i686 0:4.8.30-3.fc15 will be installed
--> Processing Dependency: db4-cxx = 4.8.30-3.fc15 for package: db4-devel-4.8.30-3.fc15.i686
---> Package expat-devel.i686 0:2.0.1-11.fc15 will be installed
---> Package openldap-devel.i686 0:2.4.26-1.fc16.1 will be installed
--> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel-2.4.26-1.fc16.1.i686
--> Running transaction check
---> Package cyrus-sasl-devel.i686 0:2.1.23-25.fc16 will be installed
---> Package db4-cxx.i686 0:4.8.30-3.fc15 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ================================================== =======================================
Package Arch Version Repository Size
================================================== ================================================== =======================================
Installing:
httpd i686 2.2.21-1.fc16 repofile 811 k
httpd-devel i686 2.2.21-1.fc16 repofile 145 k
httpd-manual noarch 2.2.21-1.fc16 repofile 877 k
httpd-tools i686 2.2.21-1.fc16 repofile 69 k
Installing for dependencies:
apr i686 1.4.5-1.fc16 repofile 103 k
apr-devel i686 1.4.5-1.fc16 repofile 186 k
apr-util i686 1.3.12-1.fc16 repofile 82 k
apr-util-devel i686 1.3.12-1.fc16 repofile 69 k
apr-util-ldap i686 1.3.12-1.fc16 repofile 16 k
cyrus-sasl-devel i686 2.1.23-25.fc16 repofile 299 k
db4-cxx i686 4.8.30-3.fc15 repofile 644 k
db4-devel i686 4.8.30-3.fc15 repofile 16 M
expat-devel i686 2.0.1-11.fc15 repofile 54 k
openldap-devel i686 2.4.26-1.fc16.1 repofile 986 k

Transaction Summary
================================================== ================================================== =======================================
Install 14 Packages

Total download size: 20 M
Installed size: 84 M
Is this ok [y/N]:






--now i f i press y then it shows some following output:------


Is this ok [y/N]: y
Downloading Packages:


Error Downloading Packages:
httpd-devel-2.2.21-1.fc16.i686: failure: Packages/httpd-devel-2.2.21-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
db4-devel-4.8.30-3.fc15.i686: failure: Packages/db4-devel-4.8.30-3.fc15.i686.rpm from repofile: [Errno 256] No more mirrors to try.
httpd-manual-2.2.21-1.fc16.noarch: failure: Packages/httpd-manual-2.2.21-1.fc16.noarch.rpm from repofile: [Errno 256] No more mirrors to try.
httpd-2.2.21-1.fc16.i686: failure: Packages/httpd-2.2.21-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
apr-util-1.3.12-1.fc16.i686: failure: Packages/apr-util-1.3.12-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
cyrus-sasl-devel-2.1.23-25.fc16.i686: failure: Packages/cyrus-sasl-devel-2.1.23-25.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
httpd-tools-2.2.21-1.fc16.i686: failure: Packages/httpd-tools-2.2.21-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
apr-util-devel-1.3.12-1.fc16.i686: failure: Packages/apr-util-devel-1.3.12-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
db4-cxx-4.8.30-3.fc15.i686: failure: Packages/db4-cxx-4.8.30-3.fc15.i686.rpm from repofile: [Errno 256] No more mirrors to try.
apr-1.4.5-1.fc16.i686: failure: Packages/apr-1.4.5-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
apr-util-ldap-1.3.12-1.fc16.i686: failure: Packages/apr-util-ldap-1.3.12-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
expat-devel-2.0.1-11.fc15.i686: failure: Packages/expat-devel-2.0.1-11.fc15.i686.rpm from repofile: [Errno 256] No more mirrors to try.
apr-devel-1.4.5-1.fc16.i686: failure: Packages/apr-devel-1.4.5-1.fc16.i686.rpm from repofile: [Errno 256] No more mirrors to try.
openldap-devel-2.4.26-1.fc16.1.i686: failure: Packages/openldap-devel-2.4.26-1.fc16.1.i686.rpm from repofile: [Errno 256] No more mirrors to try.

Last edited by glennzo; 24th April 2012 at 01:05 PM. Reason: 4 almost identical threads
Reply With Quote
  #2  
Old 15th April 2012, 01:58 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,731
windows_7firefox
Re: yum server on fedora 16

I usually create a folder, move the rpm files to that folder, run createrepo /folder_name from just outside that folder, and then create the .repo file in /etc/yum.repos.d. Seems to work well.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 24th April 2012, 01:11 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,731
windows_xp_2003chrome
Re: yum server on fedora 16

All four posts merged as they are essentially the same.

Create a folder.
PHP Code:
mkdir /test 
Copy all rpm files to that folder then run
PHP Code:
createrepo /test 
Create a repo file in /etc/yum.repos.d
PHP Code:
vim /etc/yum.repos.d/test.repo 
Add the following to that new repo file
PHP Code:
[test]
Name=test
baseurl
=file:///test/
enabled=
Save the file and exit the editor. Run
PHP Code:
yum repolist 
You should see your new repo listed with the others.

http://yum.baseurl.org/wiki/RepoCreate
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #4  
Old 27th April 2012, 06:21 AM
freedomvikrant Offline
Registered User
 
Join Date: Apr 2012
Location: shimla(himachal pradesh ) india
Posts: 9
windows_xp_2003chrome
Re: yum server on fedora 16

thank you sir thank u very much

actually i made mistake at when i isssued the cmd createrepo /rpms
after this cmd it takes at least 5 -10 minute but here i was thinking that nothing is happening i just break the process by ctrl+c that was my istake i should continue this process..

u were also right in ur first reply as well ur second reply i dint use ur second reply becuase first worked
Reply With Quote
  #5  
Old 27th April 2012, 08:19 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,731
linuxfirefox
Re: yum server on fedora 16

When I created my Fedora 14 repo createrepo took more than an hour working though more than 25000 files.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
Reply

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
Mail Server for Fedora Directory Server domain barry905 Guides & Solutions (No Questions) 1 20th August 2009 04:40 AM
Setting up Fedora Directoy Server as LDAP Address book server: how? mdragt Servers & Networking 0 17th September 2008 12:20 PM
Fedora Core 8 as File Sharing server and Printing server lucazz Servers & Networking 8 14th June 2008 08:28 PM
Fedora Directory Server Administration Server Confiugration Failed? exutable Servers & Networking 10 8th January 2008 02:16 PM
Fedora Core 2 Test 3 - NFS server: server is down .::malamut::. Servers & Networking 3 22nd August 2007 11:45 AM


Current GMT-time: 12:26 (Thursday, 02-10-2014)

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