La création d’un miroir pour les paquets va permettre de créer et de maintenir la copie conforme de dépôts en local. La raison principale est de ne plus avoir besoin de connexion vers le net pour pouvoir installer un paquet ou bien faire des mises à jour. C’est donc une solution pratique et efficace pour une install party, la mise à jour d’un parc de machine ou, pour en finir, la mise à jour ou l’installation chez une personne ne disposant pas d’une connexion vers le net, ou dont la connexion est trop lente.
1) Installation de apt-mirror : apt-get install apt-mirror
2) Préparation du dossier de stockage , dans mon cas : /home/Raid5/miroir :
mkdir -p /home/Raid5/miroir{mirror,skel,var}
3) Configuration , tout se passe dans le fichier /etc/apt/mirror.list :
dans mon cas , je récupere le miroir debian wheezy (32 / 64bits et sources) main,non-free et contrib
et le miroir debian-multimedia pour la dist wheezy (32 / 64bits et sources) en main,non-free, contrib
############# config ##################
set base_path /home/Raid5/miroir
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
set defaultarch amd64
set nthreads 20
set _tilde 0
############# end config ##############
deb-i386 http://ftp.fr.debian.org/debian wheezy main contrib non-free
deb-amd64 http://ftp.fr.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.fr.debian.org/debian wheezy main contrib non-free
deb-i386 http://security.debian.org/ wheezy/updates main contrib non-free
deb-amd64 http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
deb-i386 http://www.deb-multimedia.org wheezy main non-free
deb-amd64 http://www.deb-multimedia.org wheezy main non-free
deb-src http://www.deb-multimedia.org wheezy main non-free
clean http://ftp.us.debian.org/debian
###############################
4) Mise à jour du mirroir par tache planifiée :
a ajouter dans taches cron : /usr/bin/apt-mirror > /home/Raid5/miroir/var/log.log
F*ckin’ remarkable issues here. I am very happy to peer your post. Thank you so much and i’m looking ahead to touch you. Will you please drop me a mail?
Only a smiling visitor here to share the love (:, btw outstanding design and style .
Dead written subject material, Really enjoyed studying.
Good – I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs as well as related information ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Reasonably unusual. Is likely to appreciate it for those who add forums or something, website theme . a tones way for your client to communicate. Excellent task.
Great post. I used to be checking continuously this weblog and I am inspired! Very useful information specifically the last section 🙂 I deal with such information much. I was looking for this particular info for a very lengthy time. Thanks and best of luck.
Real nice design and wonderful content, absolutely nothing else we require :D.
I really appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again!
I saw a lot of website but I believe this one has something extra in it. “It is no measure of health to be well adjusted to a profoundly sick society.” by J. Krishnamurti.
I’ve been surfing online greater than three hours today, yet I by no means found any attention-grabbing article like yours. It is beautiful worth enough for me. Personally, if all web owners and bloggers made excellent content as you probably did, the web will probably be much more helpful than ever before. “I think that maybe if women and children were in charge we would get somewhere.” by James Grover Thurber.
Many thanks for being the lecturer on this topic. My partner and i enjoyed your article greatly and most of all liked how you handled the areas I thought to be controversial. You’re always incredibly kind to readers like me and help me in my everyday living. Thank you.
You have observed very interesting details! ps decent web site.
Valuable info. Lucky me I found your site by accident, and I am shocked why this accident didn’t happened earlier! I bookmarked it.
Hello! Where did you get theme of your website? It is pretty amazing 😀
Hello there! Where did you get design of your website? It’s incredible 🙂
I’m not certain where you are getting your information, but good topic. I needs to spend a while studying more or figuring out more. Thanks for magnificent info I used to be in search of this info for my mission.
This is a wonderful entry, you made it enjoyable to read.
Good website! I really love how it is simple on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. I’ve subscribed to your RSS which must do the trick! Have a great day!
Great post friend, keep up the good work.
Say thanks a ton for all of the undertaking on this blog
Hi there to all, it’s truly a pleasant for me to visit this site, it consists of valuable Information.
Hey there! Where did you download layout of this blog? It’s amazing 🙂
Great post friend, keep up the good work.
What a great post, thanks for sharing this.
That is a great tip particularly to those fresh to the blogosphere. Simple but very accurate info… Many thanks for sharing this one. A must read article!
Hello there! Where did you get layout of this blog? It’s amazing 😉
Aw, this was an exceptionally nice post. Spending some time and actual effort to produce a top notch article… but what can I say… I hesitate a lot and don’t manage to get anything done.
There are so many blogs around relating to dating, it’s always great to find some fresh content
I normally learn something after i prevent by here, Eric. Many thanks!
Excellent website. Plenty of helpful information here. I am sending it to some buddies ans additionally sharing in delicious. And of course, thank you on your sweat!
Just desire to say your article is as astounding. The clarity in your post is just cool and i could assume you are an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please carry on the gratifying work.
Fantastically excellent bless you, It is my viewpoint your trusty followers may well want more information such as this keep up the terrific effort.
Outstandingly illuminating many thanks, It is my viewpoint your current subscribers may possibly just want a great deal more blog posts similar to this keep up the excellent articles.
Where ever you go, I’ll observe…Congrats!!!!
I really like your wp theme, where did you get a hold of it from?
I dugg some of you post as I thought they were extremely helpful extremely helpful
I just added this webpage to my feed reader, great stuff.
Cannot discover enough!
Hi there! This article could not be written any better! Looking through this article reminds me of my previous roommate! He always kept preaching about this. I’ll send this post to him. Fairly certain he’s going to have a good read. I appreciate you for sharing!
I used to be able to find good information from your articles.
I blog quite often and I genuinely appreciate your content. This article has truly peaked my interest. I am going to book mark your blog and keep checking for new information about once per week. I opted in for your RSS feed as well.
A motivating discussion is worth comment. I do believe that you need to write more on this subject matter, it may not be a taboo matter but usually people don’t discuss such subjects. To the next! Many thanks!!
This blog was… how do I say it? Relevant!! Finally I have found something that helped me. Appreciate it!
My relatives always say that I am killing my time here at net,
however I know I am getting know-how every day
by reading thes good articles.
It appears like great submit, even so it just a single side on the medal. Wonderful reading anyway, I often appreciated superior brain teaser and solid amount of pleasant information.
Thank you for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more clear from this post. I am very glad to see such excellent information being shared freely out there.
Saved as a favorite, I love your website!
Do you mind if I quote a couple of your posts as
long as I provide credit and sources back to your blog?
My website is in the exact same niche as yours and my users would genuinely
benefit from a lot of the information you present here.
Please let me know if this ok with you. Many thanks!
All maplestory secrets revealed !!! Including exploits
Just wanted to drop by and say thanks for this post!
Your style is very unique compared to other people I have read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this site.
Pretty section of content. I just stumbled upon your site and in accession capital to assert that I get in fact enjoyed account your blog posts. Anyway I will be subscribing to your augment and even I achievement you access consistently rapidly.
you’ve gotten an ideal blog right here! would you like to make some invite posts on my weblog?
Why did you blog about Debian Tips Perso » Comment créer un miroir de dépôt local? Don’t get me wrong, it’s a great post but it’s just kinda different than your other topics.
My brother recommended I might like this web site.
He was totally right. This post truly made my day. You cann’t imagine simply how much time
I had spent for this info! Thanks!
Highly energetic blog, I enjoyed that a lot. Will there be a part 2?
Wow! At last I got a web site from where I can actuaslly take helppful ata regarding my study and knowledge.
Greetings! Very helpful advice in this particular post!
It’s the little changes that produce the greatest changes.
Thanks for sharing!
Whoa! This blog looks exactly like my old one! It’s
on a entirely different subject but it has pretty much the same page layout and
design. Outstanding choice of colors!
I’m not sure where you’re getting your information, but great
topic. I needs to spend some time learning much more or understanding more.
Thanks for wonderful information I was looking for this information for my mission.
Heya i’m for the first time here. I came across this board and I find It truly useful & it helped me out much.
I hope to give something back and help others like you aided me.
Very nice post. I simply stumbled upon your weblog and wished to
say that I’ve truly loved surfing around your weblog posts.
After all I’ll be subscribing in your rss feed and
I am hoping you write once more soon!
Hello there! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading through your posts.
Can you recommend any other blogs/websites/forums that go
over the same topics? Thanks a ton!
Fantastic post however I was wanting to know
if you could write a litte more on this subject?
I’d be very thankful if you could elaborate a little bit further.
Kudos!
I like the valuable information you provide in your articles.
I’ll bookmark your blog and check again here
regularly. I’m quite certain I will learn many new stuff right here!
Good luck for the next!
Grewate post. Keep posting such kind of information on your
page. Im really impressed by your site.
Hello there, You’ve done an excellent job. I will definitely digg it and in my opinion
suggest to my friends. I am sure they will be benefited from this site.
Hello! This is my first visit to your blog! We are
a group of volunteers and starting a new project in
a community in the same niche. Your blog provided
us valuable information to work on. You have done a wonderful job!
If some one wishes to be updated with most up-to-date technologies therefore he must be pay a quick visit this web page and be up to date daily.
I blog quite often annd I truly thank you for your content.
The article has really peaked my interest. I am
going to bookmark your website and keep checking for new information about once a week.
I subscribed to your RSS feed as well.
I have read so many content concerning the blogger lovers however this post is actually a good paragraph, keep it up.
Excellent post. I will be dealing with some of these issues ass well..
What’s Happening i’m new to this, I stumbled upon this I’ve found
It absolutely helpful and it has helped me out loads. I’m hoping too give a
contribution & assist different users like itss aided me.
Great job.
Hi there, just became alert to your blog through Google, and found that it’s truly
informative. I’m going to watch out for brussels. I’ll
be grateful if you continue this in future. Lots of people
will be benefited from your writing. Cheers!
Wonderful goods from you, man. I have understand your stuff previous to and you’re just too great.
I really like what you have acquired here, really like what you’re saying and the way in which you say it.
You make it enjoyable and you still take care of to keep it smart.
I can not wait to read far more from you.
This is actually a terrific web site.
Greate article. Keep writing such kind of information on your page.
Im really impressed by it.
Hi there, You have done a fantastic job. I’ll certainly
digg it and in my view recommend to my friends. I am confident they’ll be benefited from this web site.
This is a topic that’s close to my heart… Many thanks!
Exactly where are your contact details though?
I have been browsing online more than three hours today, yet I ocasionally find any interesting article like this one. It’s pretty worthenough for me.I couldn’t refrain from commenting. Exceptionally well written!I will right away clutch your rss feed as I can’t to find your e-mail subscription link or e-newsletter service. Do you have any?Please let me realize in order that I could subscribe. Thanks.
Very neat blog post. Really Cool.
Awfully enlightening many thanks, It looks like your current readers could possibly possibly want even more blog posts similar to this continue the great effort.
I’m extremely inspired together with your writing skills as well as with the structure in
your weblog. Is that this a paid theme or did you customize it
your self? Anyway stay up the nice high quality writing, it is uncommon
to look a great blog like this one these days..
I am not positively where you’re getting your information, nevertheless fantastic issue. I requirements to spend a quantity of epoch learning much extra otherwise thoughtful more. Thankfulness for vast in order I was looking on behalf of this information for my mission.
bonjour
cela parait tres bien, j ai installe un mirror pour debian testing,
il y a 2 petits probleme:
1… des copies d’anciens paquets restent encore, malgre le clean,
J ai reglé le probleme en ecrivant un scipt qui nettoie, je vous l’envoie si cela vous interesse
2.. le fichier Release contient un date de validite, qui m’oblige a modfier ma date du PC,
j ai regle mon probleme, avec generation de cle et release localement, mais je voudrais modifier la date ou la supprimer carrement. avec apt-mirror peut etre.
dans ubuntu il n y a pas cette date de validite, peut tere uniqement pour la testing de debian…
merci pour l’aide