Warning for new local repository updates?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.
I only have to warn myself when a new update appears on official mirror. I've tried
lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages
&& lcd /path/
&& mirror -n --delete
&& exit'
to download new packets, but always goes and brings some packets I've already downloaded before.
I don't know if it doesn't matter and when I run the command
createrepo --update
it updates disposing apart the repeated packets.
Is there a way to look for only the packets that are't present on local repository?
centos yum repository
add a comment |Â
up vote
0
down vote
favorite
I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.
I only have to warn myself when a new update appears on official mirror. I've tried
lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages
&& lcd /path/
&& mirror -n --delete
&& exit'
to download new packets, but always goes and brings some packets I've already downloaded before.
I don't know if it doesn't matter and when I run the command
createrepo --update
it updates disposing apart the repeated packets.
Is there a way to look for only the packets that are't present on local repository?
centos yum repository
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.
I only have to warn myself when a new update appears on official mirror. I've tried
lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages
&& lcd /path/
&& mirror -n --delete
&& exit'
to download new packets, but always goes and brings some packets I've already downloaded before.
I don't know if it doesn't matter and when I run the command
createrepo --update
it updates disposing apart the repeated packets.
Is there a way to look for only the packets that are't present on local repository?
centos yum repository
I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.
I only have to warn myself when a new update appears on official mirror. I've tried
lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages
&& lcd /path/
&& mirror -n --delete
&& exit'
to download new packets, but always goes and brings some packets I've already downloaded before.
I don't know if it doesn't matter and when I run the command
createrepo --update
it updates disposing apart the repeated packets.
Is there a way to look for only the packets that are't present on local repository?
centos yum repository
centos yum repository
edited Jun 4 at 12:17
U880D
401314
401314
asked Oct 9 '17 at 17:16
DB3632
11
11
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
I would use an rsync mirror. rsync
will only pull down files you don't have.
rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
createrepo --update /var/www/html/repos/centos/7/updates/x86_64/
Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
I would use an rsync mirror. rsync
will only pull down files you don't have.
rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
createrepo --update /var/www/html/repos/centos/7/updates/x86_64/
Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.
add a comment |Â
up vote
1
down vote
I would use an rsync mirror. rsync
will only pull down files you don't have.
rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
createrepo --update /var/www/html/repos/centos/7/updates/x86_64/
Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I would use an rsync mirror. rsync
will only pull down files you don't have.
rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
createrepo --update /var/www/html/repos/centos/7/updates/x86_64/
Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.
I would use an rsync mirror. rsync
will only pull down files you don't have.
rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
createrepo --update /var/www/html/repos/centos/7/updates/x86_64/
Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.
edited Jun 4 at 15:17
U880D
401314
401314
answered May 26 at 22:14
Tim Brandrick
1014
1014
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397074%2fwarning-for-new-local-repository-updates%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password