FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 04-02-2008, 07:11 PM
Tom Brown
 
Default cobbler 0.8.x - cobbler repo update

Hi

i use cobbler to configure my repo's with cobbler repo add etc and this
works fine. Can anyone give me any pointers to the process of adding a
new rpm to a repo and syncing it so its available using yum, all through
the use of cobbler?


thanks

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 07:25 PM
Michael DeHaan
 
Default cobbler 0.8.x - cobbler repo update

Tom Brown wrote:

Hi

i use cobbler to configure my repo's with cobbler repo add etc and
this works fine. Can anyone give me any pointers to the process of
adding a new rpm to a repo and syncing it so its available using yum,
all through the use of cobbler?


thanks

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


If you want to maintain your own repo with rpms, all you have to do is ...

mkdir /opt/foo
cp <lots of rpms> /opt/foo
cobbler repo add --name=foo-name --mirror=/opt/foo
(this actually uses rsync, so if you have another box in your org, with
a directory full of RPMs, you can pass in --mirror=user@server:/opt/foo)


And it will take care of calling createrepo and making sure the repo
config files are all created correctly.


I'd recommend doing that rather than trying to add an RPM to an existing
mirrored repo, as that will make it clearer what comes from where and
you can enable/disable individual repos as needed.


--Michael



_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 07:33 PM
Tom Brown
 
Default cobbler 0.8.x - cobbler repo update

If you want to maintain your own repo with rpms, all you have to do is
...


mkdir /opt/foo
cp <lots of rpms> /opt/foo
cobbler repo add --name=foo-name --mirror=/opt/foo
(this actually uses rsync, so if you have another box in your org,
with a directory full of RPMs, you can pass in
--mirror=user@server:/opt/foo)


And it will take care of calling createrepo and making sure the repo
config files are all created correctly.


I'd recommend doing that rather than trying to add an RPM to an
existing mirrored repo, as that will make it clearer what comes from
where and you can enable/disable individual repos as needed.




thanks - i will bear this in mind - for this scenario i just added that
rpm to a current repo - ram createrepo on it and then cobbler reposync
and thats now available in the repo cobbler is aware of. I will add and
remove rpm's from existing repo's quite a lot so creating a repo each
time would be a bit of a pain to manage.


thanks

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 07:48 PM
Michael DeHaan
 
Default cobbler 0.8.x - cobbler repo update

Tom Brown wrote:




If you want to maintain your own repo with rpms, all you have to do
is ...


mkdir /opt/foo
cp <lots of rpms> /opt/foo
cobbler repo add --name=foo-name --mirror=/opt/foo
(this actually uses rsync, so if you have another box in your org,
with a directory full of RPMs, you can pass in
--mirror=user@server:/opt/foo)


And it will take care of calling createrepo and making sure the repo
config files are all created correctly.


I'd recommend doing that rather than trying to add an RPM to an
existing mirrored repo, as that will make it clearer what comes from
where and you can enable/disable individual repos as needed.




thanks - i will bear this in mind - for this scenario i just added
that rpm to a current repo - ram createrepo on it and then cobbler
reposync and thats now available in the repo cobbler is aware of. I
will add and remove rpm's from existing repo's quite a lot so creating
a repo each time would be a bit of a pain to manage.


Right, use the above trick and it will be dealt with automatically, if
you add it to an existing one, reposync will undo your changes each time
you update.


thanks

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 08:02 PM
Tom Brown
 
Default cobbler 0.8.x - cobbler repo update

Right, use the above trick and it will be dealt with automatically, if
you add it to an existing one, reposync will undo your changes each
time you update.




hmmm i did

cp rpm to /repo/foo/1 (/repo/foo/1 was the resultant dir of a cobbler
repo add)

createrepo /repo/foo/1
cobbler reposync

the result of this was that the rpm was now present and available to
install using yum from /repo/foo/1


so it seems to work -


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 08:05 PM
Michael DeHaan
 
Default cobbler 0.8.x - cobbler repo update

Tom Brown wrote:




Right, use the above trick and it will be dealt with automatically,
if you add it to an existing one, reposync will undo your changes
each time you update.




hmmm i did

cp rpm to /repo/foo/1 (/repo/foo/1 was the resultant dir of a cobbler
repo add)

createrepo /repo/foo/1
cobbler reposync


If the cobbler repo directory is already mirrored you do not need to run
createrepo again.

cobbler reposync will do that for you.

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 09:16 PM
Tom Brown
 
Default cobbler 0.8.x - cobbler repo update

If the cobbler repo directory is already mirrored you do not need to run
createrepo again.

cobbler reposync will do that for you.


ok thanks - i'll give it a shot


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 09:53 PM
Tom Brown
 
Default cobbler 0.8.x - cobbler repo update

If you want to maintain your own repo with rpms, all you have to do is
...


mkdir /opt/foo
cp <lots of rpms> /opt/foo
cobbler repo add --name=foo-name --mirror=/opt/foo
(this actually uses rsync, so if you have another box in your org,
with a directory full of RPMs, you can pass in
--mirror=user@server:/opt/foo)


And it will take care of calling createrepo and making sure the repo
config files are all created correctly.


I'd recommend doing that rather than trying to add an RPM to an
existing mirrored repo, as that will make it clearer what comes from
where and you can enable/disable individual repos as needed.




[root@cobbler-server noarch]# mkdir /opt/foo
[root@cobbler-server noarch]# cp *rpm /opt/foo/
[root@cobbler-server noarch]# cobbler repo add --name=testing-extras
--mirror=/opt/foo

[root@cobbler-server noarch]# ll /opt/foo/*rpm | wc -l
19
[root@cobbler-server noarch]#

something is not right there - just fails silently ?

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 09:55 PM
Michael DeHaan
 
Default cobbler 0.8.x - cobbler repo update

Tom Brown wrote:




If you want to maintain your own repo with rpms, all you have to do
is ...


mkdir /opt/foo
cp <lots of rpms> /opt/foo
cobbler repo add --name=foo-name --mirror=/opt/foo
(this actually uses rsync, so if you have another box in your org,
with a directory full of RPMs, you can pass in
--mirror=user@server:/opt/foo)


And it will take care of calling createrepo and making sure the repo
config files are all created correctly.


I'd recommend doing that rather than trying to add an RPM to an
existing mirrored repo, as that will make it clearer what comes from
where and you can enable/disable individual repos as needed.




[root@cobbler-server noarch]# mkdir /opt/foo
[root@cobbler-server noarch]# cp *rpm /opt/foo/
[root@cobbler-server noarch]# cobbler repo add --name=testing-extras
--mirror=/opt/foo

[root@cobbler-server noarch]# ll /opt/foo/*rpm | wc -l
19
[root@cobbler-server noarch]#

something is not right there - just fails silently ?

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


What did you think failed?

No copy occurs until you run "cobbler reposync"


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-02-2008, 10:14 PM
Tom Brown
 
Default cobbler 0.8.x - cobbler repo update

Michael DeHaan wrote:

Tom Brown wrote:




If you want to maintain your own repo with rpms, all you have to do
is ...


mkdir /opt/foo
cp <lots of rpms> /opt/foo
cobbler repo add --name=foo-name --mirror=/opt/foo
(this actually uses rsync, so if you have another box in your org,
with a directory full of RPMs, you can pass in
--mirror=user@server:/opt/foo)


And it will take care of calling createrepo and making sure the repo
config files are all created correctly.


I'd recommend doing that rather than trying to add an RPM to an
existing mirrored repo, as that will make it clearer what comes from
where and you can enable/disable individual repos as needed.




[root@cobbler-server noarch]# mkdir /opt/foo
[root@cobbler-server noarch]# cp *rpm /opt/foo/
[root@cobbler-server noarch]# cobbler repo add --name=testing-extras
--mirror=/opt/foo

[root@cobbler-server noarch]# ll /opt/foo/*rpm | wc -l
19
[root@cobbler-server noarch]#

something is not right there - just fails silently ?

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


What did you think failed?

No copy occurs until you run "cobbler reposync"



ah ok my mistake

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org