@preserved-rebuild how to find out the contents of

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

@preserved-rebuild how to find out the contents of

Helmut Jarausch-2
Hi,

I have some old packages like dev-qt/qtcore:4 on my machine, and other  
packages which need this.

Therefore emerge -vp @preserved-rebuild  doesn't work.

How can I find out the list of packages in @preserved-rebuild?

Many thanks for a hint,
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: @preserved-rebuild how to find out the contents of

Andrew Udvare


> On Dec 29, 2018, at 10:47, Helmut Jarausch <[hidden email]> wrote:
>
> How can I find out the list of packages in @preserved-rebuild?

There's a JSON file in /var/db/portage

Reply | Threaded
Open this post in threaded view
|

Re: @preserved-rebuild how to find out the contents of

Rich Freeman
On Sat, Dec 29, 2018 at 11:03 AM Andrew Udvare <[hidden email]> wrote:
>
> > On Dec 29, 2018, at 10:47, Helmut Jarausch <[hidden email]> wrote:
> >
> > How can I find out the list of packages in @preserved-rebuild?
>
> There's a JSON file in /var/db/portage
>

Not sure if there is anything that directly targets the API here, but
this will probably work:
emerge -p --nodeps @preserved-rebuild

In general it is better to use portage or its API to read the package
database than to go reading files directly.

--
Rich

Reply | Threaded
Open this post in threaded view
|

Re: @preserved-rebuild how to find out the contents of

Helmut Jarausch-2
In reply to this post by Andrew Udvare
On 12/29/2018 05:03:51 PM, Andrew Udvare wrote:
>
>
> > On Dec 29, 2018, at 10:47, Helmut Jarausch <[hidden email]>  
> wrote:
> >
> > How can I find out the list of packages in @preserved-rebuild?
>
> There's a JSON file in /var/db/portage
>

I don't have the folder /var/db/portage here.
Thanks,
Helmut



Reply | Threaded
Open this post in threaded view
|

Re: @preserved-rebuild how to find out the contents of

Helmut Jarausch-2
In reply to this post by Rich Freeman
On 12/29/2018 05:09:02 PM, Rich Freeman wrote:

> On Sat, Dec 29, 2018 at 11:03 AM Andrew Udvare <[hidden email]>  
> wrote:
> >
> > > On Dec 29, 2018, at 10:47, Helmut Jarausch <[hidden email]>  
> wrote:
> > >
> > > How can I find out the list of packages in @preserved-rebuild?
> >
> > There's a JSON file in /var/db/portage
> >
>
> Not sure if there is anything that directly targets the API here, but
> this will probably work:
> emerge -p --nodeps @preserved-rebuild
>
> In general it is better to use portage or its API to read the package
> database than to go reading files directly.
>

Thanks Rich,

I'll try that later.
I've found those packages with revdep-rebuild --library ...
s.t. there aren't any packages currently in @preserved-rebuild

Reply | Threaded
Open this post in threaded view
|

Re: @preserved-rebuild how to find out the contents of

Andrew Udvare
In reply to this post by Helmut Jarausch-2

> On 2018-12-29, at 12:33, Helmut Jarausch <[hidden email]> wrote:
>
> On 12/29/2018 05:03:51 PM, Andrew Udvare wrote:
>> > On Dec 29, 2018, at 10:47, Helmut Jarausch <[hidden email]> wrote:
>> >
>> > How can I find out the list of packages in @preserved-rebuild?
>> There's a JSON file in /var/db/portage
>
> I don't have the folder /var/db/portage here.
> Thanks,
> Helmut
>
The file you want is /var/lib/portage/preserved_libs_registry

# cat /var/lib/portage/preserved_libs_registry
{
        "dev-libs/openssl:0": [
                "dev-libs/openssl-1.1.0j",
                "62711",
                [
                        "/usr/lib32/libcrypto.so.1.0.0",
                        "/usr/lib32/libssl.so.1.0.0",
                        "/usr/lib64/libcrypto.so.1.0.0",
                        "/usr/lib64/libssl.so.1.0.0"
                ]
        ]
}