Re: [ilugd] Distributed updates in Ubuntu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Sagar Belure writes: [...] > And yes, Vivek seems right, that apt-cacher-ng uses cache located at > /var/cache/apt-cacher-ng/_import. > Now, I'm hoping importing already downloaded packages from > /var/cache/apt/will be all fine. With apt-cacher you need to run a script apt-cacher-import.pl, after copying the already downloaded packages in 'import' directory, which copies packages in 'packages' directory and registers in its cache db. HTH - -- Ashish SHUKLA “Age is not an accomplishment, and youth is not a sin.” (Robert A. Heinlein, "Methuselah's Children", 1958) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (GNU/Linux) iQIcBAEBCgAGBQJMTYwuAAoJEMdGz6nnT6SwZdsP/1DEZeaVomOzym9PTHpwzAX3 4505QYR57AW92DHUmbyl8Hz0tAUBIVrdX5Y7lODG21GL2bUPNXAmKmKBZCylX635 cYi8LFZPs6Q/8w3+8PsXqOhjhCSo/S2ROY97u/SsvhE5rFJlu3KCWDNTvQCkKmJd OqR4Ow0PchcQrIQg3MUoRCae6HY/Xir25o6/TUcZINeR1YW/4DJYCYO+1SFSIcOU Uj27drTPM/PLCU/v8JbgljxrtXhCFexSDpwDcQrkf5aZJrl9kgYWyZrmwp02BpCf Ygju9Ko4iW6MHxOf54qC06YnV9hddULvFKqsdjjuWPDy1Ct7OUDSKGtUg1MzD735 Z5OKKVxO0bjTpLOxXGjavJ8VzLop1O3IeJnNr2AY+ALyBMhlw02FSDj74uCofa0m uKOyMdtYbJ/jsACiF+kjXwPeO/B7IgAyv41F1vx38R9rCxFGGaqp4gZc3PSsEc00 IvCUp/yh4xIOmdbYPO2X/Clv7NQVWscD/cF6uz5NdfNyGFu3soKCygH0HSGdklCC lzHC9X2N4ZOTdzK3K9AJfMYZcFAMEQVoohNpL5I9W7sBVJZXCqCcR9bhFZXus80A +IMMFtrINFL2NZVD76QcgFI0AtobHMpSthysXxzowTQam6FuIIPd8L2IfYuSz/IA BNzBrSW4LMa82qWq5yc+ =hvZO -END PGP SIGNATURE- ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On Mon, Jul 26, 2010 at 3:46 PM, Ashish SHUKLA wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Sagar Belure writes: > > On Mon, Jul 26, 2010 at 2:37 PM, Ashish SHUKLA > wrote: > > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA512 > >> > >> Sagar Belure writes: > >> > On Mon, Jul 26, 2010 at 11:15 AM, Sagar Belure < > sagar.bel...@gmail.com > >> >wrote: > >> > >> >> On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA >> >wrote: > >> >> > >> >>> -BEGIN PGP SIGNED MESSAGE- > >> >>> Hash: SHA512 > >> >>> > >> >>> Vivek Kapoor writes: > >> >>> > On 07/23/2010 06:32 PM, Sagar Belure > wrote: > >> >>> >> Please, bear with me, if I'm not able to properly present my > >> >>> requirement. > >> >>> >> > >> >>> >> There are some 32 and 64 bit ubuntu systems in same network. > >> >>> >> I want only one system(like, one 32 and one 64 bit systems) to be > >> >>> updated > >> >>> >> and upgraded on daily basis. > >> >>> >> And, rest of the systems, to fetch those updated packages before > >> they > >> >>> go > >> >>> >> online and check for new packages. > >> >>> > >> >>> > From what I have understood, you don't want every machine to > download > >> >>> > from the Ubuntu repositories, but only one machine should do the > >> >>> > task. It'll handle 32bit and 64bit without any issues. Use one of > the > >> >>> > following > >> >>> > >> >>> > apt-proxy, apt-cacher, apt-cacher-ng, approx > >> >>> > >> >>> > I started with apt-cacher and faced update issues in long term > use, > >> so > >> >>> > I moved to approx and was happy with it, but newer version > presented > >> a > >> >>> > bit difficulty in the sense that it didn't run its own daemon. So > I > >> >>> > moved onto apt-cacher-ng which has been working well for quite > some > >> >>> > time now. > >> >>> > >> >>> I also used apt-cacher in past and it worked but recent versions had > >> some > >> >>> issues, so I kept the old version pinned on my Debian box. > >> >>> > >> >>> I also tried pkg-cacher[1] because I needed to cache for 'yum' > >> >>> (fedora/centos) > >> >>> also and it worked great since it can cache both 'yum' and 'apt'. > >> >>> > >> >>> References: > >> >>> [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ > >> >>> > >> >>> HTH > >> >>> > >> >> > >> >> Thank you all for your responses. > >> >> I got options to look into and your views and experience is really > >> >> valuable. > >> >> > >> > >> > 'apt-cacher-ng' seems to fulfill my requirements. > >> > BTW, is it ,by any chance, possible to set up 'repository-cache' > server > >> > combined for 32 as well as 64 bit systems. > >> > apt-cacher-ng uses /var/cache/apt/archives as repository, and is > >> obviously > >> > different for 32 and 64 bit systems. > >> > >> The file names of the downloaded packages have architecture mentioned in > >> them, > >> so you don't have to worry about 32-bit packages getting overwritten by > >> 64-bit > >> ones. And I used a single repository with apt-cacher and pkg-cacher. > >> > > > Ok. By that, you mean, once I run 'sudo apt-get update ; sudo apt-get > > upgrade' on repository-cache server(Ubuntu 10.04 amd64 desktop), provided > it > > has apt-cache-ng installed, will be able to fetch 32 bit debs too? > > I'm not sure about 'apt-cache-ng', never used it. > > > Or wait > > > How am I supposed to update repository-cache server? > > I used 'apt-cacher' and 'pkg-cacher' both of which act only when they > receive > an HTTP request from one of the clients. They're usually installed as a CGI > binary, or as a standalone web-server. And when they receive a HTTP request > for a file, they perform a cache look-up, and if the file is in cache, they > serve it from cache, otherwise they initiate downloading from the source. > The > first time one of your client updates itself, a 'cache miss' will happen > and > the packages will be downloaded. And for subsequent updates, the packages > are > served from the cache. > Ok. That was very clear and neat. Thank you. AFAICS, installation with 'apt-cacher-ng' on the systems seems the same way, looking at the configuration page by browsing http://localhost:3124/acng-report.html And yes, Vivek seems right, that apt-cacher-ng uses cache located at /var/cache/apt-cacher-ng/_import. Now, I'm hoping importing already downloaded packages from /var/cache/apt/will be all fine. -- Thanks, Sagar Belure Security Analyst Secfence Technologies www.secfence.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Sagar Belure writes: > On Mon, Jul 26, 2010 at 2:37 PM, Ashish SHUKLA wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA512 >> >> Sagar Belure writes: >> > On Mon, Jul 26, 2010 at 11:15 AM, Sagar Belure > >wrote: >> >> >> On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA > >wrote: >> >> >> >>> -BEGIN PGP SIGNED MESSAGE- >> >>> Hash: SHA512 >> >>> >> >>> Vivek Kapoor writes: >> >>> > On 07/23/2010 06:32 PM, Sagar Belure wrote: >> >>> >> Please, bear with me, if I'm not able to properly present my >> >>> requirement. >> >>> >> >> >>> >> There are some 32 and 64 bit ubuntu systems in same network. >> >>> >> I want only one system(like, one 32 and one 64 bit systems) to be >> >>> updated >> >>> >> and upgraded on daily basis. >> >>> >> And, rest of the systems, to fetch those updated packages before >> they >> >>> go >> >>> >> online and check for new packages. >> >>> >> >>> > From what I have understood, you don't want every machine to download >> >>> > from the Ubuntu repositories, but only one machine should do the >> >>> > task. It'll handle 32bit and 64bit without any issues. Use one of the >> >>> > following >> >>> >> >>> > apt-proxy, apt-cacher, apt-cacher-ng, approx >> >>> >> >>> > I started with apt-cacher and faced update issues in long term use, >> so >> >>> > I moved to approx and was happy with it, but newer version presented >> a >> >>> > bit difficulty in the sense that it didn't run its own daemon. So I >> >>> > moved onto apt-cacher-ng which has been working well for quite some >> >>> > time now. >> >>> >> >>> I also used apt-cacher in past and it worked but recent versions had >> some >> >>> issues, so I kept the old version pinned on my Debian box. >> >>> >> >>> I also tried pkg-cacher[1] because I needed to cache for 'yum' >> >>> (fedora/centos) >> >>> also and it worked great since it can cache both 'yum' and 'apt'. >> >>> >> >>> References: >> >>> [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ >> >>> >> >>> HTH >> >>> >> >> >> >> Thank you all for your responses. >> >> I got options to look into and your views and experience is really >> >> valuable. >> >> >> >> > 'apt-cacher-ng' seems to fulfill my requirements. >> > BTW, is it ,by any chance, possible to set up 'repository-cache' server >> > combined for 32 as well as 64 bit systems. >> > apt-cacher-ng uses /var/cache/apt/archives as repository, and is >> obviously >> > different for 32 and 64 bit systems. >> >> The file names of the downloaded packages have architecture mentioned in >> them, >> so you don't have to worry about 32-bit packages getting overwritten by >> 64-bit >> ones. And I used a single repository with apt-cacher and pkg-cacher. >> > Ok. By that, you mean, once I run 'sudo apt-get update ; sudo apt-get > upgrade' on repository-cache server(Ubuntu 10.04 amd64 desktop), provided it > has apt-cache-ng installed, will be able to fetch 32 bit debs too? I'm not sure about 'apt-cache-ng', never used it. > Or wait > How am I supposed to update repository-cache server? I used 'apt-cacher' and 'pkg-cacher' both of which act only when they receive an HTTP request from one of the clients. They're usually installed as a CGI binary, or as a standalone web-server. And when they receive a HTTP request for a file, they perform a cache look-up, and if the file is in cache, they serve it from cache, otherwise they initiate downloading from the source. The first time one of your client updates itself, a 'cache miss' will happen and the packages will be downloaded. And for subsequent updates, the packages are served from the cache. HTH - -- Ashish SHUKLA “Any sufficiently advanced technology is indistinguishable from magic.” (Arthur C. Clarke) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (GNU/Linux) iQIcBAEBCgAGBQJMTWB2AAoJEMdGz6nnT6SwgC0QAIN4rPafmLzQH6qNfgM4jAbw RiWSahPt4v272sq0HZ7mIRX7KjTdVO2OBfVhYIhyZ3rEchlStj1TwfkKcZF1toRR ItocI+o5mJ8pSKGhszCAhT0TWzImNsZJplJds2h7XbBcl2sndc3sNHzuSCOpRG83 xMDa9xKvHnoTD00vLkZhT245i5f8GpfrCJAY+yqqcDoOL+iwA4b7s9g+1s/T4K5w JstbhFkOfrL3SgofokgPHlELV2Mfc+fzURQO5wJ2WVBVSP9NS5Ydb5yMvQigG8PJ tJBbr9/kpQ6191gtJmpe63p7MyVGX+WkJfX6y/X2WQtdy4tcbA5Bw5/s2earSv0M RoaMz/w0a4l1Ab12rS1bWqExXHbozhf3D8Rssj06ILEgHCmtrBdLSl89AnoHlwQF iW4Asuc+Q972nsAHJti2FKdSHjToU8ONnr08gdiKw0Q86+NoB61IxPH1aS1QAAcx AOkCRQBl71lc5i3Cj+x2m5v1CULMrpNVNhnYx5K2VUyxQ4DKPSQUw7OuRueqjSkF LOUdVIxRVhS27TvGQUYY6i29KH5wvMcqNClvVRgS5SRU+JsnzkazRe9XHGUKXm9V gdkU7Nu+T1+Msd8WzAwUDpkWt5Lx7lG+D3bQXR0t6nYfKYGQkNnAi7ER5WMPDSz3 mtCbHxcWsY1ZOtgnSXdG =CMn9 -END PGP SIGNATURE- ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On Mon, Jul 26, 2010 at 2:37 PM, Ashish SHUKLA wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Sagar Belure writes: > > On Mon, Jul 26, 2010 at 11:15 AM, Sagar Belure >wrote: > > >> On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA >wrote: > >> > >>> -BEGIN PGP SIGNED MESSAGE- > >>> Hash: SHA512 > >>> > >>> Vivek Kapoor writes: > >>> > On 07/23/2010 06:32 PM, Sagar Belure wrote: > >>> >> Please, bear with me, if I'm not able to properly present my > >>> requirement. > >>> >> > >>> >> There are some 32 and 64 bit ubuntu systems in same network. > >>> >> I want only one system(like, one 32 and one 64 bit systems) to be > >>> updated > >>> >> and upgraded on daily basis. > >>> >> And, rest of the systems, to fetch those updated packages before > they > >>> go > >>> >> online and check for new packages. > >>> > >>> > From what I have understood, you don't want every machine to download > >>> > from the Ubuntu repositories, but only one machine should do the > >>> > task. It'll handle 32bit and 64bit without any issues. Use one of the > >>> > following > >>> > >>> > apt-proxy, apt-cacher, apt-cacher-ng, approx > >>> > >>> > I started with apt-cacher and faced update issues in long term use, > so > >>> > I moved to approx and was happy with it, but newer version presented > a > >>> > bit difficulty in the sense that it didn't run its own daemon. So I > >>> > moved onto apt-cacher-ng which has been working well for quite some > >>> > time now. > >>> > >>> I also used apt-cacher in past and it worked but recent versions had > some > >>> issues, so I kept the old version pinned on my Debian box. > >>> > >>> I also tried pkg-cacher[1] because I needed to cache for 'yum' > >>> (fedora/centos) > >>> also and it worked great since it can cache both 'yum' and 'apt'. > >>> > >>> References: > >>> [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ > >>> > >>> HTH > >>> > >> > >> Thank you all for your responses. > >> I got options to look into and your views and experience is really > >> valuable. > >> > > > 'apt-cacher-ng' seems to fulfill my requirements. > > BTW, is it ,by any chance, possible to set up 'repository-cache' server > > combined for 32 as well as 64 bit systems. > > apt-cacher-ng uses /var/cache/apt/archives as repository, and is > obviously > > different for 32 and 64 bit systems. > > The file names of the downloaded packages have architecture mentioned in > them, > so you don't have to worry about 32-bit packages getting overwritten by > 64-bit > ones. And I used a single repository with apt-cacher and pkg-cacher. > Ok. By that, you mean, once I run 'sudo apt-get update ; sudo apt-get upgrade' on repository-cache server(Ubuntu 10.04 amd64 desktop), provided it has apt-cache-ng installed, will be able to fetch 32 bit debs too? Or wait How am I supposed to update repository-cache server? -- Thanks, Sagar Belure Security Analyst Secfence Technologies www.secfence.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On 07/26/2010 02:28 PM, Sagar Belure wrote: Yes, apt-cacher* is just cache server. But, I have to install it *individually* on two different systems for 32 and 64 bit systems. Not sure what you mean by install it individually. You just install apt-cacher-ng `apt-get install apt-cacher-ng` on a single machine, and on each of the client machines you just create a file named 01proxy in /etc/apt/apt.conf.d having Acquire::http { Proxy "http://xx.xx.xx.xx:3142";; }; where xx.xx.xx.xx is the IP of the machine on which apt-cacher-ng is installed. That's all. You can also do the same on the apt-cacher-ng machine also. On each client machine then run `apt-get update` and you're done. It doesn't matter it's 32bit or 64bit. Of course the firewall should be opened on apt-cacher-ng machine for tcp port 3142. Did you see any message mentioning 32bit and 64bit there? Like in Windows, WSUS caches the packages for almost all Windows product updates, doesn't matter if it's 32 or 64 bit, doesn't even matter if updates are for XP or Vista or Win7. So, all I'm asking if it's possible to achieve same kind of functionality in Ubuntu too? Yes, these caching servers do just that. Irrespective of the architecture or even the distribution & version (atleast Ubuntu/Debian based). Or do you want to have a complete ubuntu mirror on your machine? I don't think that would be a good idea. [1]http://www.ubuntugeek.com/apt-cacher-ng-http-download-proxy-for-software-packages.html It's too complicated a setup in the link above. Also, the writer is importing packages from /var/cache/apt/archives to prevent downloading them again - this is just for the first time. You may not need it at all. Regards Vivek Kapoor http://exain.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Sagar Belure writes: > On Mon, Jul 26, 2010 at 11:15 AM, Sagar Belure wrote: >> On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA512 >>> >>> Vivek Kapoor writes: >>> > On 07/23/2010 06:32 PM, Sagar Belure wrote: >>> >> Please, bear with me, if I'm not able to properly present my >>> requirement. >>> >> >>> >> There are some 32 and 64 bit ubuntu systems in same network. >>> >> I want only one system(like, one 32 and one 64 bit systems) to be >>> updated >>> >> and upgraded on daily basis. >>> >> And, rest of the systems, to fetch those updated packages before they >>> go >>> >> online and check for new packages. >>> >>> > From what I have understood, you don't want every machine to download >>> > from the Ubuntu repositories, but only one machine should do the >>> > task. It'll handle 32bit and 64bit without any issues. Use one of the >>> > following >>> >>> > apt-proxy, apt-cacher, apt-cacher-ng, approx >>> >>> > I started with apt-cacher and faced update issues in long term use, so >>> > I moved to approx and was happy with it, but newer version presented a >>> > bit difficulty in the sense that it didn't run its own daemon. So I >>> > moved onto apt-cacher-ng which has been working well for quite some >>> > time now. >>> >>> I also used apt-cacher in past and it worked but recent versions had some >>> issues, so I kept the old version pinned on my Debian box. >>> >>> I also tried pkg-cacher[1] because I needed to cache for 'yum' >>> (fedora/centos) >>> also and it worked great since it can cache both 'yum' and 'apt'. >>> >>> References: >>> [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ >>> >>> HTH >>> >> >> Thank you all for your responses. >> I got options to look into and your views and experience is really >> valuable. >> > 'apt-cacher-ng' seems to fulfill my requirements. > BTW, is it ,by any chance, possible to set up 'repository-cache' server > combined for 32 as well as 64 bit systems. > apt-cacher-ng uses /var/cache/apt/archives as repository, and is obviously > different for 32 and 64 bit systems. The file names of the downloaded packages have architecture mentioned in them, so you don't have to worry about 32-bit packages getting overwritten by 64-bit ones. And I used a single repository with apt-cacher and pkg-cacher. HTH - -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “We've so many people in India, that we're able to route each network packet manually.” (nobotz) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (GNU/Linux) iQIcBAEBCgAGBQJMTVBVAAoJEMdGz6nnT6SwY7kP/iDN6jMdb9c6fizag3pTEqv1 /yynBEiZYrY6M34UdeWLTixWHpYG0pxFHjuAW8nun0hNuwHIaqdp+s9aIpoxZbuq J+G8bWkzgvU/Ran2iQ+zsogqVonZr7O1/KxqKeUorybjIoJJa+Qn+QbkfZDeqjLZ ED3Y1ItQ9iredKE3RDhmr+KWLeeeDZY/m5X0ZjaFbbRdnfLU3dfbkd2XAd6EP/9V sVyQjFI0izogAvLoItkEIW2WZVErk2jXxg8hJfdOpM23PTDEtIMlxrqw/TV837w/ xKN9PUrevj7URIR6ACNcDh7l0uHq/QlPqL9+Cg9ULrp0l4leZSx9qiAPMjezleBn JN0FGVgB0mdILXEBENn3kyrIVVA1/C8jQWqoffhPkIjSXWS9CkP2WDOKWJ9m3T+/ /4ldV5hQJvJ9GN8UAK20ySQyj5BsTHZjXWPqg7TUxB9Ernrcm0xl6QIpERGjt20j 4xnUMMEDP42KP/uLgj7ymHGahoHkRBruu1kS3NDPTnA90TegCvOdnxWNGCN+KfR8 0r+8VyaIh7vcJpkTYdfTjCxaoYktH7mWUPN/Zqy+a2EvRefmG3SZ83/0myZAWMEK szobGyYw0P8eHmHfCOQDMWb0xQ/KlfMtFBXTPGaQOKruREoeJ4WqJrwoAP2xLtsk La3PRIyVQtuUi0m8j36Z =/o4C -END PGP SIGNATURE- ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On Mon, Jul 26, 2010 at 2:02 PM, Vivek Kapoor wrote: > On 07/26/2010 01:47 PM, Sagar Belure wrote: > >> >> 'apt-cacher-ng' seems to fulfill my requirements. >> BTW, is it ,by any chance, possible to set up 'repository-cache' server >> combined for 32 as well as 64 bit systems. >> > > apt-cacher* is for repository-cache of both 32bit and 64bit architecture. > It's just a cache server, so it doesn't matter whether it's 32bit or 64bit > as the client machine would request a particular package which the caching > server would download (unless it's already downloaded) and serve. Yes, apt-cacher* is just cache server. But, I have to install it *individually* on two different systems for 32 and 64 bit systems. > > > apt-cacher-ng uses /var/cache/apt/archives as repository, and is obviously >> different for 32 and 64 bit systems. >> > > I don't think it uses /var/cache/apt/archives. Instead it uses > /var/cache/apt-cacher-ng for the cache. Atleast it does that on my machine. Well, that's what I read[1]. > > > Any clue, to achieve combined repository? >> >> > Not sure what you mean by combined repository. What do you intend to do? Like in Windows, WSUS caches the packages for almost all Windows product updates, doesn't matter if it's 32 or 64 bit, doesn't even matter if updates are for XP or Vista or Win7. So, all I'm asking if it's possible to achieve same kind of functionality in Ubuntu too? [1] http://www.ubuntugeek.com/apt-cacher-ng-http-download-proxy-for-software-packages.html -- Thanks, Sagar Belure Security Analyst Secfence Technologies www.secfence.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On 07/26/2010 01:47 PM, Sagar Belure wrote: 'apt-cacher-ng' seems to fulfill my requirements. BTW, is it ,by any chance, possible to set up 'repository-cache' server combined for 32 as well as 64 bit systems. apt-cacher* is for repository-cache of both 32bit and 64bit architecture. It's just a cache server, so it doesn't matter whether it's 32bit or 64bit as the client machine would request a particular package which the caching server would download (unless it's already downloaded) and serve. apt-cacher-ng uses /var/cache/apt/archives as repository, and is obviously different for 32 and 64 bit systems. I don't think it uses /var/cache/apt/archives. Instead it uses /var/cache/apt-cacher-ng for the cache. Atleast it does that on my machine. Any clue, to achieve combined repository? Not sure what you mean by combined repository. What do you intend to do? Regards Vivek Kapoor http://exain.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On Mon, Jul 26, 2010 at 11:15 AM, Sagar Belure wrote: > On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA512 >> >> Vivek Kapoor writes: >> > On 07/23/2010 06:32 PM, Sagar Belure wrote: >> >> Please, bear with me, if I'm not able to properly present my >> requirement. >> >> >> >> There are some 32 and 64 bit ubuntu systems in same network. >> >> I want only one system(like, one 32 and one 64 bit systems) to be >> updated >> >> and upgraded on daily basis. >> >> And, rest of the systems, to fetch those updated packages before they >> go >> >> online and check for new packages. >> >> > From what I have understood, you don't want every machine to download >> > from the Ubuntu repositories, but only one machine should do the >> > task. It'll handle 32bit and 64bit without any issues. Use one of the >> > following >> >> > apt-proxy, apt-cacher, apt-cacher-ng, approx >> >> > I started with apt-cacher and faced update issues in long term use, so >> > I moved to approx and was happy with it, but newer version presented a >> > bit difficulty in the sense that it didn't run its own daemon. So I >> > moved onto apt-cacher-ng which has been working well for quite some >> > time now. >> >> I also used apt-cacher in past and it worked but recent versions had some >> issues, so I kept the old version pinned on my Debian box. >> >> I also tried pkg-cacher[1] because I needed to cache for 'yum' >> (fedora/centos) >> also and it worked great since it can cache both 'yum' and 'apt'. >> >> References: >> [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ >> >> HTH >> > > Thank you all for your responses. > I got options to look into and your views and experience is really > valuable. > 'apt-cacher-ng' seems to fulfill my requirements. BTW, is it ,by any chance, possible to set up 'repository-cache' server combined for 32 as well as 64 bit systems. apt-cacher-ng uses /var/cache/apt/archives as repository, and is obviously different for 32 and 64 bit systems. Any clue, to achieve combined repository? -- Thanks, Sagar Belure Security Analyst Secfence Technologies www.secfence.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On Fri, Jul 23, 2010 at 7:42 PM, Ashish SHUKLA wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Vivek Kapoor writes: > > On 07/23/2010 06:32 PM, Sagar Belure wrote: > >> Please, bear with me, if I'm not able to properly present my > requirement. > >> > >> There are some 32 and 64 bit ubuntu systems in same network. > >> I want only one system(like, one 32 and one 64 bit systems) to be > updated > >> and upgraded on daily basis. > >> And, rest of the systems, to fetch those updated packages before they go > >> online and check for new packages. > > > From what I have understood, you don't want every machine to download > > from the Ubuntu repositories, but only one machine should do the > > task. It'll handle 32bit and 64bit without any issues. Use one of the > > following > > > apt-proxy, apt-cacher, apt-cacher-ng, approx > > > I started with apt-cacher and faced update issues in long term use, so > > I moved to approx and was happy with it, but newer version presented a > > bit difficulty in the sense that it didn't run its own daemon. So I > > moved onto apt-cacher-ng which has been working well for quite some > > time now. > > I also used apt-cacher in past and it worked but recent versions had some > issues, so I kept the old version pinned on my Debian box. > > I also tried pkg-cacher[1] because I needed to cache for 'yum' > (fedora/centos) > also and it worked great since it can cache both 'yum' and 'apt'. > > References: > [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ > > HTH > Thank you all for your responses. I got options to look into and your views and experience is really valuable. -- Thanks, Sagar Belure Security Analyst Secfence Technologies www.secfence.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On Sat, 24 Jul 2010 11:05:40 +0530, Anil Seth wrote: > On 23 July 2010 19:51, Vivek Kapoor wrote: >> >> Wouldn't it create difficulty/corruption if two machines are trying to >> download a package at the same time? I think the caching tools are >> designed >> to prevent that. > > Yes, it can have issues. For small networks, it is more of an > occasional/potential nuisance. For my personal home needs it was not > an issue. There's a minor inconvenience in this approach even if we ignore the simultaneous downloading of files part. You would still have to update the package information (apt-get update) from Ubuntu repositories on all the machines as that data isn't in /var/cache/apt/archives :-) It's 6MB+ from what I can recall (if I exclude the sources). Regards Vivek Kapoor http://exain.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On 23 July 2010 19:51, Vivek Kapoor wrote: > On 07/23/2010 07:23 PM, Anil Seth wrote: >> >> I have used a simplistic approach by linking /var/cache/apt./archives >> to a common NFS mounted directory. Only requirement is that no root >> squash option is needed. >> >> It does not even matter which system is updated first as all >> subsequent updates find the package in the common cache. > > Wouldn't it create difficulty/corruption if two machines are trying to > download a package at the same time? I think the caching tools are designed > to prevent that. > > Regards > Vivek Kapoor > http://exain.com > Yes, it can have issues. For small networks, it is more of an occasional/potential nuisance. For my personal home needs it was not an issue. Anil ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On 07/23/2010 07:23 PM, Anil Seth wrote: I have used a simplistic approach by linking /var/cache/apt./archives to a common NFS mounted directory. Only requirement is that no root squash option is needed. It does not even matter which system is updated first as all subsequent updates find the package in the common cache. Wouldn't it create difficulty/corruption if two machines are trying to download a package at the same time? I think the caching tools are designed to prevent that. Regards Vivek Kapoor http://exain.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Vivek Kapoor writes: > On 07/23/2010 06:32 PM, Sagar Belure wrote: >> Please, bear with me, if I'm not able to properly present my requirement. >> >> There are some 32 and 64 bit ubuntu systems in same network. >> I want only one system(like, one 32 and one 64 bit systems) to be updated >> and upgraded on daily basis. >> And, rest of the systems, to fetch those updated packages before they go >> online and check for new packages. > From what I have understood, you don't want every machine to download > from the Ubuntu repositories, but only one machine should do the > task. It'll handle 32bit and 64bit without any issues. Use one of the > following > apt-proxy, apt-cacher, apt-cacher-ng, approx > I started with apt-cacher and faced update issues in long term use, so > I moved to approx and was happy with it, but newer version presented a > bit difficulty in the sense that it didn't run its own daemon. So I > moved onto apt-cacher-ng which has been working well for quite some > time now. I also used apt-cacher in past and it worked but recent versions had some issues, so I kept the old version pinned on my Debian box. I also tried pkg-cacher[1] because I needed to cache for 'yum' (fedora/centos) also and it worked great since it can cache both 'yum' and 'apt'. References: [1] http://gforge.opensource-sw.net/gf/project/pkg_cacher/frs/ HTH - -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 freebsd.org!ashish | http://people.freebsd.org/~ashish/ “ECC curves are divided into three groups, weak curves, inefficient curves, and curves patented by Certicom” (Peter Gutmann, 2001-08-10) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (GNU/Linux) iQIcBAEBCgAGBQJMSaNOAAoJEMdGz6nnT6SwwHQQAJQpFoWlQKtmGhGL/mdo3SBo T/Gyd1rBI59Q1l2ccgrIgiNhwTmRWugjXADWpodO6DFcw/13NUdJfNpkO8Ljgx1J HAVWQDh+44x6x0Sljfw8gbt2GipyteDhf1qJxRLf4HLhbqQtAtUSfZ7VqWPKkO9v o48vkdh0KdcM8U0e4kMLffxNdCQFgwHfL/p+i0OuayUXlKv4g7Yv665rxIksRBOZ OhTa2ibjT9pMNaHUKhID7Xx3FRdX+dbe3aXGM2h6mN4ecLk4WPJgAesRz/6lwbY4 keEotU+d9+Fz1S9ID3ZPFLzBlpLbe5dJoYWREAx1t8EAc1VGowpsKWcebswjMs6W 2SR2msffeiciK6MQVdUHUbQpNsEsBi1WCa851k+g6c9vB92d5dhYDjEh6ZwtEk85 4bTQA/IWgX7XWyw0aAzOwTAMdUpT6uNnkBqOv+JwmQOPRTGWsAOjIcW/JOUSmuhE b6dC14nE4+FjfK9bIfmqFVHv5CPzWDhHZNL64oOMkzA/u8EVFGCLxN1nkiUCpgpf Kj5Tghx9s6R5EdzzR1ucFogAeI7/xwytL8WUJHl4ITMQJzlkHW9JtzT7co/QegJF 2ygvWy7bYguaDTRgTWok0Yc2pLPrDmsXi97SH+scZnlI+35HzkvnuUliCB+I2nAs 7cyevmyD++eLTcVaQJp5 =S/AO -END PGP SIGNATURE- ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On 23 July 2010 18:57, Vivek Kapoor wrote: > On 07/23/2010 06:32 PM, Sagar Belure wrote: >> >> Please, bear with me, if I'm not able to properly present my requirement. >> >> There are some 32 and 64 bit ubuntu systems in same network. >> I want only one system(like, one 32 and one 64 bit systems) to be updated >> and upgraded on daily basis. >> And, rest of the systems, to fetch those updated packages before they go >> online and check for new packages. > > From what I have understood, you don't want every machine to download from > the Ubuntu repositories, but only one machine should do the task. It'll > handle 32bit and 64bit without any issues. Use one of the following > > apt-proxy, apt-cacher, apt-cacher-ng, approx > > I started with apt-cacher and faced update issues in long term use, so I > moved to approx and was happy with it, but newer version presented a bit > difficulty in the sense that it didn't run its own daemon. So I moved onto > apt-cacher-ng which has been working well for quite some time now. > > Hope it helps. > > Regards > Vivek Kapoor > http://exain.com > I have used a simplistic approach by linking /var/cache/apt./archives to a common NFS mounted directory. Only requirement is that no root squash option is needed. It does not even matter which system is updated first as all subsequent updates find the package in the common cache. Anil ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Distributed updates in Ubuntu
On 07/23/2010 06:32 PM, Sagar Belure wrote: Please, bear with me, if I'm not able to properly present my requirement. There are some 32 and 64 bit ubuntu systems in same network. I want only one system(like, one 32 and one 64 bit systems) to be updated and upgraded on daily basis. And, rest of the systems, to fetch those updated packages before they go online and check for new packages. From what I have understood, you don't want every machine to download from the Ubuntu repositories, but only one machine should do the task. It'll handle 32bit and 64bit without any issues. Use one of the following apt-proxy, apt-cacher, apt-cacher-ng, approx I started with apt-cacher and faced update issues in long term use, so I moved to approx and was happy with it, but newer version presented a bit difficulty in the sense that it didn't run its own daemon. So I moved onto apt-cacher-ng which has been working well for quite some time now. Hope it helps. Regards Vivek Kapoor http://exain.com ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd