Fedora Linux Support Community & Resources Center
  #1  
Old 26th December 2009, 06:17 PM
xyphilon Offline
Registered User
 
Join Date: Jan 2005
Posts: 12
windows_7ie
Question Create your own repo?

Hello,

I used to make my own Fedora repo's.
Stripped and customized for my servers... Was very handy.

I noticed the repo creation has changed a lot since Fedora 9.

Does anyone have a guide on how to make your own repo, based on Fedora 12?

I guess we are still using "createrepo" and anaconda's "buildinstall"?

Thanks!
Reply With Quote
  #2  
Old 26th December 2009, 07:11 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxfedorafirefox
There a nice guide in this particular sub-forum written by member Seve if you care to search for it. In a nutshell, make a folder, populate that folder, run createrepo, make a .repo file and go to town. I suggest maybe testing the process using the files on the install DVD. I'll make a quick one now.
Make a folder.
Code:
mkdir /temp/installfiles
Type mount to see where the DVD I just inserted is mounted.
Code:
mount
...
...
/dev/sr0 on /media/Fedora 12 i386 DVD type iso9660 (ro,nosuid,nodev,uhelper=devkit,uid=500,gid=500,iocharset=utf8,mode=0400,dmode=0500)
Copy the files (didn't work as regular user so I switched to root). Use tab completion for the command so the path to the source files is correct.
Code:
cp /media/Fedora\ 12\ i386\ DVD/Packages/* /temp/installfiles/
While the files are copying open another terminal and create the repo file.
Code:
vi /etc/yum.repos.d/test.repo
Add the following to the file.
Code:
[test]
Name=Test Repo - $releasever - $basearch
baseurl=file:///temp/installfiles/
enabled=1
Files are done copying. Run createrepo.
Code:
[root@leonardo glenn]# createrepo /temp/installfiles
2399/2399 - zsh-4.3.10-4.fc12.i686.rpm                                          
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@leonardo glenn]#
Test the new repository.
Code:
[root@leonardo glenn]# yum check-update
Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
updates/metalink                                                                  |  18 kB     00:00     
 * fedora: mirror.cogentco.com
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: ftp.us.unixeria.com
adobe-linux-i386                                                                  |  951 B     00:00     
google                                                                            |  951 B     00:00     
repof12                                                                           | 1.3 kB     00:00     
rpmfusion-free-updates                                                            | 3.3 kB     00:00     
rpmfusion-nonfree-updates                                                         | 3.3 kB     00:00     
test                                                                              | 1.3 kB     00:00 ... 
test/primary                                                                      | 928 kB     00:00 ... 
test                                                                                           2399/2399
virtualbox                                                                        |  951 B     00:00     
[root@leonardo glenn]#
It worked. Just as a note of interest. I had been using rsync to populate my repositories in the past. I just discovered reposync. It's part of the yum-utils package (yum install yum-utils). Once installed you can reposync fedora /temp/installfiles for example. This will put all of the files from the fedora repo into /temp/installfiles.
Code:
[root@leonardo glenn]# yum repolist
Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: mirror.cogentco.com
 * rpmfusion-free: mirror.liberty.edu
 * rpmfusion-free-updates: mirror.liberty.edu
 * rpmfusion-nonfree: mirror.liberty.edu
 * rpmfusion-nonfree-updates: mirror.liberty.edu
 * updates: ftp.us.unixeria.com
repo id                            repo name                                              status
adobe-linux-i386                   Adobe Systems Incorporated                             enabled:     17
fedora                             Fedora 12 - i386                                       enabled: 15,366
google                             Google - i386                                          enabled:      1
repof12                            Local Repository for Fedora 12 - i386                  enabled: 15,235
rpmfusion-free                     RPM Fusion for Fedora 12 - Free                        enabled:    383
rpmfusion-free-updates             RPM Fusion for Fedora 12 - Free - Updates              enabled:    179
rpmfusion-nonfree                  RPM Fusion for Fedora 12 - Nonfree                     enabled:    124
rpmfusion-nonfree-updates          RPM Fusion for Fedora 12 - Nonfree - Updates           enabled:     97
test                               Test Repo - 12 - i386                                  enabled:  2,399
updates                            Fedora 12 - i386 - Updates                             enabled:  2,608
virtualbox                         Fedora 12 - i386 - VirtualBox                          enabled:      4
repolist: 36,413
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 26th December 2009, 07:59 PM
xyphilon Offline
Registered User
 
Join Date: Jan 2005
Posts: 12
windows_7ie
Cool. Thanks.
So, I suck this into an ISO, and I am done?

Can I also use yum to update the RPMs in my distro?
Reply With Quote
  #4  
Old 26th December 2009, 08:10 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,214
linuxfedorafirefox
(moved from Guides & Solutions No Questions to Spins & Remixes)
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #5  
Old 26th December 2009, 09:49 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxfedorafirefox
Quote:
Originally Posted by bob View Post
(moved from Guides & Solutions No Questions to Spins & Remixes)
Old Glennzo is sleeping on the job again
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 26th December 2009, 09:53 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxfedorafirefox
Quote:
Originally Posted by xyphilon View Post
Cool. Thanks.
So, I suck this into an ISO, and I am done?
Huh?
Quote:
Originally Posted by xyphilon View Post
Can I also use yum to update the RPMs in my distro?
If you mean sync the repository from time to time I think reposync will do that too. Then run createrepo --update to add the new files.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 27th December 2009, 08:01 PM
xyphilon Offline
Registered User
 
Join Date: Jan 2005
Posts: 12
windows_7ie
I need to create a repo which I can make an ISO of, and then burn it to CDs, to install the rest of my servers...

I used to do this with buildinstall from anaconda runtime...
Reply With Quote
Reply

Tags
create, repo

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
How can i create a repo tjjoost Using Fedora 5 25th August 2007 09:17 AM
create an own yum-repo pc-pimp Using Fedora 2 4th January 2006 05:08 PM
How do I create my own repo? macgregor Using Fedora 6 10th September 2005 07:50 PM
create repo on my hard disk...how? robin108 Using Fedora 4 1st August 2005 03:41 AM


Current GMT-time: 13:19 (Monday, 20-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