Hi peter,
the packages rpm come from the source that ltib downloads from his
repository. While the ltib is being compiled, he creates the the
packages in the folder rpm/ inside your ltib root dir. After
installing the package, he is deleted from your system if you are
executing the command "ltib -c". So if you want to use the rpm command
to list the packages that are installed in your ltib you can execute
the following command:
"rpm --dbpath /<ltib_root_dir/rootfs/var/lib/rpm -qa"
To list the files that one package install in your rootfs execute:
"rpm --dbpath /<ltib_root_dir/rootfs/var/lib/rpm -ql <package_name>"
Regards
Rogério
2009/9/8 Peter Barada <address@hidden>:
> 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>
> Logic Product Development, Inc.
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
>
>