Comment créer un miroir de dépôt local

dimanche, mars 10, 2013

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/
set defaultarch  amd64
set nthreads     20
set _tilde 0
############# end config ##############
deb-i386 wheezy main contrib non-free
deb-amd64 wheezy main contrib non-free
deb-src wheezy main contrib non-free

deb-i386 wheezy/updates main contrib non-free
deb-amd64 wheezy/updates main contrib non-free
deb-src wheezy/updates main contrib non-free

deb-i386 wheezy main non-free
deb-amd64 wheezy main non-free
deb-src wheezy main non-free


4) Mise à jour du mirroir par tache planifiée :

a ajouter dans taches cron : /usr/bin/apt-mirror > /home/Raid5/miroir/var/log.log




  1. Max Ellison dit :

    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?

  2. Alfie Martin dit :

    Only a smiling visitor here to share the love (:, btw outstanding design and style .

  3. Josh Summers dit :

    Dead written subject material, Really enjoyed studying.

  4. 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.

  5. 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.

  6. Rachel Clare dit :

    Real nice design and wonderful content, absolutely nothing else we require :D.

  7. 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!

  8. 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.

  9. 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.

  10. Ellie Enright dit :

    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.

  11. Jack Owen dit :

    You have observed very interesting details! ps decent web site.

  12. Nowośći filmowe dit :

    Valuable info. Lucky me I found your site by accident, and I am shocked why this accident didn’t happened earlier! I bookmarked it.

  13. playstation 3 emulator ps3 dit :

    Hello! Where did you get theme of your website? It is pretty amazing 😀

  14. ps3 emulator 2013 dit :

    Hello there! Where did you get design of your website? It’s incredible 🙂

  15. null dit :

    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.

  16. Graham dit :

    This is a wonderful entry, you made it enjoyable to read.

  17. added dit :

    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!

  18. Preston dit :

    Great post friend, keep up the good work.

  19. Dion Strahle dit :

    Say thanks a ton for all of the undertaking on this blog

  20. no deposit casino bonus codes dit :

    Hi there to all, it’s truly a pleasant for me to visit this site, it consists of valuable Information.

  21. matura przecieki dit :

    Hey there! Where did you download layout of this blog? It’s amazing 🙂

  22. Lynelle dit :

    Great post friend, keep up the good work.

  23. Keven dit :

    What a great post, thanks for sharing this.

  24. Nevena Petrusic dit :

    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!

  25. ps3 emulator x bios dit :

    Hello there! Where did you get layout of this blog? It’s amazing 😉

  26. Nevena Petrusic dit :

    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.

  27. Matilde Criscione dit :

    There are so many blogs around relating to dating, it’s always great to find some fresh content

  28. Erick Holmquest dit :

    I normally learn something after i prevent by here, Eric. Many thanks!

  29. sesli chat dit :

    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!

  30. sesli sohbet dit :

    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.

  31. Gale Blatherwick dit :

    Fantastically excellent bless you, It is my viewpoint your trusty followers may well want more information such as this keep up the terrific effort.

  32. Margert Krout dit :

    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.

  33. Jordan Bridge dit :

    Where ever you go, I’ll observe…Congrats!!!!

  34. life insurance premium calculator canada dit :

    I really like your wp theme, where did you get a hold of it from?

  35. Brent Hortein dit :

    I dugg some of you post as I thought they were extremely helpful extremely helpful

  36. reverse phone lookup dit :

    I just added this webpage to my feed reader, great stuff.
    Cannot discover enough!

  37. Vulli Sophie The Giraffe Teether dit :

    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!

  38. Vulli Sophie The Giraffe Teether dit :

    I used to be able to find good information from your articles.

  39. amazon teething toys dit :

    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.

  40. britax frontier car seat dit :

    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!!

  41. msvcp100.dll dit :

    This blog was… how do I say it? Relevant!! Finally I have found something that helped me. Appreciate it!

  42. best iphone cases dit :

    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.

  43. Norma Heizer dit :

    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.

  44. Cyndi Flecha dit :

    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.

  45. Sharla Masin dit :

    Saved as a favorite, I love your website!

  46. toshiba direct dit :

    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!

  47. Eladia Meddaugh dit :

    All maplestory secrets revealed !!! Including exploits

  48. rachael dit :

    Just wanted to drop by and say thanks for this post!

  49. twin size bedroom sets dit :

    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.

  50. Gussie Mattina dit :

    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.

  51. Taisha Speers dit :

    you’ve gotten an ideal blog right here! would you like to make some invite posts on my weblog?

  52. paid to write dit :

    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.

  53. 2424blog dit :

    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!

  54. your task dit :

    Highly energetic blog, I enjoyed that a lot. Will there be a part 2?

  55. Chester dit :

    Wow! At last I got a web site from where I can actuaslly take helppful ata regarding my study and knowledge.

  56. dit :

    Greetings! Very helpful advice in this particular post!
    It’s the little changes that produce the greatest changes.

    Thanks for sharing!

  57. gold watches dit :

    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!

  58. zulutrade dit :

    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.

  59. dit :

    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.

  60. dit :

    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!

  61. sua tarefa dit :

    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!

  62. 2424blog dit :

    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.

  63. dit :

    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!

  64. encrage continu dit :

    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.

  65. 11.6 inch laptop case dit :

    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!

  66. womens gold watches dit :

    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.

  67. car insurance rates dit :

    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.

  68. dit :

    I have read so many content concerning the blogger lovers however this post is actually a good paragraph, keep it up.

  69. Virginia car insurance dit :

    Excellent post. I will be dealing with some of these issues ass well..

  70. personal online reputation management dit :

    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.

  71. dit :

    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!

  72. gold watches dit :

    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.

  73. dit :

    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.

  74. polskie filmy dit :

    This is a topic that’s close to my heart… Many thanks!
    Exactly where are your contact details though?

  75. Kimbra Rasmus dit :

    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.

  76. Fishing Lovers dit :

    Very neat blog post. Really Cool.

  77. Reynaldo Ordeneaux dit :

    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.

  78. Terry Bandy dit :

    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..

  79. choroba dit :

    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.

  80. abd_bela dit :


    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

Répondre à Cyndi Flecha Cancel reply

This blog is kept spam free by WP-SpamFree.