On 2020-07-27 at 09:56, Rodolfo Medina wrote:
> The Wanderer <wanderer@fastmail.fm> writes:
>
>> On 2020-07-27 at 08:53, Rodolfo Medina wrote:
>>> But audacity is installed on my Debian box since months... How can it
>>> depend on a package installed a few days ago...?
>>
>> My guess would be that this is about architecture differences.
>>
>> What the install line from above indicates was installed on the 23rd is
>> the i386 version of liblilv-0-0. I suspect that the amd64 version was
>> already installed. The amd64 version of audacity depends on the amd64
>> version of this library, and the i386 version of audacity almost
>> certainly depends on the i386 version of this library.
>>
>> Try
>>
>> # aptitude purge liblilv-0-0:i386
>>
>> and see what that gives you.
>
> Your guess seems to be true:
>
> # aptitude purge liblilv-0-0:i386
> The following packages will be REMOVED:
> liblilv-0-0:i386{p} libserd-0-0:i386{u} libsord-0-0:i386{u}
> libsratom-0-0:i386{u}
> 0 packages upgraded, 0 newly installed, 4 to remove and 192 not upgraded.
> Need to get 0 B of archives. After unpacking 394 kB will be freed.
> Do you want to continue? [Y/n/?]
>
> , so it's also important that appendix `:i386'. Now, I want to remove all tha
> packages I installed on last july 23th. To do so, I do:
>
> $ grep "2015-12-19.*.install " /var/log/dpkg.log | awk '{ print $4 }' | cut -d: -f1 | tr '\n' ' '
>
> How can I modify the above command so to include - when it is present - also
> that important suffix?
Drop the '| cut -d: -f1' part. That explicitly gets rid of the suffix.
As far as I can tell from trivial testing, the resulting package list is
in the correct syntax to be passed to apt-get or aptitude for removal.
--
The Wanderer
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw
Attachment:
signature.asc
Description: OpenPGP digital signature