Help with package managers

Mirko Scurk mdebian at sfsb.hr
Tue Apr 24 09:34:39 UTC 2007


Andy Harrison wrote:
> On 4/10/07, Sean Maguire <maguiresf at googlemail.com> wrote:
>> Hi all,
>>
>> Is it possible to use any of the package managers to find out which
>> packages have been added since the initial installation? For instance,
>> I have Ubuntu install on machine A and I want to do a second install
>> on machine B. I like the package set install on machine A and want the
>> same on machine B; can I generate a list so that I can "apt-get
>> install <list>" and have all the packages from machine A installed on
>> machine B?
>>
>> Even better would be a way to keep them synchronized, so I install a
>> package on either machine and the other would detect this and prompt
>> me to install said package. I guess if it is possible to generate the
>> list I could get a perl script together to do this.
>>
>> Cheers for your help,
>>
>> Sean
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
>
> I don't know if any of the package managers can do this, but you can
> just look in the /var/cache/apt/archives directory.  This is where all
> the packages you've installed reside.
>
> So perhaps you could sync the directory with the other machine and
> then install the deb files that weren't already present.  Just keep in
> mind that when you upgrade one of these packages, it doesn't remove
> the old deb file of the corresponding version.
>

Or at least until you issue apt-get clean !

-- 
Mirko Scurk





More information about the ubuntu-users mailing list