OpenWrt Forum Archive

Topic: opkg list_installed show no packages installed

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Last night I tried the command "opkg list_installed" to check if a package pre-req was installed.

I showed nothing, just returned to the command prompt.

I  know there are packages installed because I installed them and they are working.

Is there a list of installed packages kept somewhere?

If so and it is missing or corrupted, is there a way to reconstruct it?

Regards,
Jim

After every reboot you have to run 'opkg update' to fetch the package lists. Opkg saves the package lists on the ramdisk.

I understand that part and I automatically reload the available package list as part of the boot process.

What I am missing is the ability to list the packages I have installed.

The command "opkg list" lists available packages that are retrieved via the "opkg update" command.

The command "opkg list_installed" lists the packages that have been installed.

I assume that opkg keeps a record of this somewhere and that mine is missing or corrupt.

Therefore I am trying to find put where that record is or how to recreate it.

Regards,
Jim

obrienj wrote:

I understand that part and I automatically reload the available package list as part of the boot process.

What I am missing is the ability to list the packages I have installed.

The command "opkg list" lists available packages that are retrieved via the "opkg update" command.

The command "opkg list_installed" lists the packages that have been installed.

I assume that opkg keeps a record of this somewhere and that mine is missing or corrupt.

Therefore I am trying to find put where that record is or how to recreate it.

Regards,
Jim

/usr/lib/opkg/lists/snapshots

Hope this helps

I don't have a "lists" sub-directory in /usr/lib/opkg.

That must be my problem but I have no idea why I don't have one unless it has to do with an error message I saw the last time I did an "opkg install"

The message indicated a file move error (stale NFS pointer) moving //usr/lib/opkg/status.tmp to //usr/lib/opkg/status.  Note the double "/"

I have never used  NFS so I have no idea where that came from but it does it every time I try opkg.

Regards,
Jim

obrienj wrote:

I don't have a "lists" sub-directory in /usr/lib/opkg.

That must be my problem but I have no idea why I don't have one unless it has to do with an error message I saw the last time I did an "opkg install"

The message indicated a file move error (stale NFS pointer) moving //usr/lib/opkg/status.tmp to //usr/lib/opkg/status.  Note the double "/"

I have never used  NFS so I have no idea where that came from but it does it every time I try opkg.

Regards,
Jim

There should be a copy of the files you installed in /rom/usr/lib/opkg/status

The discussion might have continued from here.