ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Where does rootfs/var/lib/rpm and content come from?


From: Stuart Hughes
Subject: Re: [Ltib] Where does rootfs/var/lib/rpm and content come from?
Date: Wed, 09 Sep 2009 08:33:22 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Peter,

Those files are the rpm database and so don't show up as they are not in a package themselves (they're a by-product of all the installed packages).

For NFS deployment those files are always left there. The purpose is so that if you choose to make a disk image, that will have a populated rpm database so files can be tracked (and packages removed).

If you have set the deployment type to anything else, you'll see a option in --- Target Image Generation / Options -> called:
        (/var/lib/rpm) remove target rpm database
If you do not have the target rpm package selected, it defaults to /var/lib/rpm and all the target rootfs/var/lib/rpm files get removed when making the image (jffs2, ext2.gz). If you do have the target rpm package selected the the value is "" and the rpm database for the target will be left. Note you can of course override this by manually setting it to /var/lib/rpm.

Regards, Stuart

Peter Barada wrote:
I'm building up a YAFFS2 rootfs for OMAP3, and I'm a bit confoozed.

I see in my resultant rootfs (and rootfs.tmp staging area), the directory var/lib/rpm that contains about 4MB of stuff:

address@hidden:~/work/logic/svn/LTIB/trunk/ltib-torpedo$ ls -l rootfs/var/lib/rpm
total 3916
-rw-r--r-- 1 root  root   335872 2009-09-08 16:22 Basenames
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Conflictname
-rw-r--r-- 1 peter peter   24576 2009-09-08 16:34 __db.001
-rw-r--r-- 1 peter peter 1318912 2009-09-08 16:34 __db.002
-rw-r--r-- 1 peter peter  663552 2009-09-08 16:34 __db.003
-rw-r--r-- 1 root  root    77824 2009-09-08 16:22 Dirnames
-rw-r--r-- 1 root  root   352256 2009-09-08 16:22 Filemd5s
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Group
-rw-r--r-- 1 root  root     8192 2009-09-08 16:22 Installtid
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Name
-rw-r--r-- 1 root  root  1466368 2009-09-08 16:22 Packages
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Providename
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Provideversion
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Requirename
-rw-r--r-- 1 root  root     8192 2009-09-08 16:22 Requireversion
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Sha1header
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Sigmd5
-rw-r--r-- 1 root  root    12288 2009-09-08 16:22 Triggername
address@hidden:~/work/logic/svn/LTIB/trunk/ltib-torpedo$

However, the following command on the host:

for i in `find rpm/RPMS -name '*.rpm'`; do rpm --root `pwd`/rootfs -ql -p $i; done

doesn't show /var/lib/rpm, or any of the files in that directory as belonging to any RPM.

So my question is:

1) Where does rootfs/var/lib/rpm and content come from?
2) Is it desperately necessary or can I strip it out to save space?

Thanks in advance.
--
Peter Barada <address@hidden <mailto:address@hidden>>
Logic Product Development, Inc.


------------------------------------------------------------------------

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]