[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Request] Is there any way to get the full source codes of Debian?



Am 2016-09-08 um 10:35 schrieb Matthieu Caneill:

>I don't know the best way to download all the source packages by once,
>but be aware it will take a lot of network traffic and disk space. Let
>me know your use-case and I'll see how I can help. :)

If you just like to get all sourcecodes for the packages you have
installed, this may help to populate your current directory:

--8<--
#!/bin/bash
dpkg --get-selections | while read line
do
        package=`echo $line | awk '{print $1}'`
        mkdir $package
        cd $package
        apt-get source --download-only $package
        cd ..
done
--8<--

Otherwise debmirror, as Manuel said. ;)

Best of wishes,
Marcel


Reply to: