Re: How can i find files not controlled by rpm?

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

 




On May 28, 2006, at 7:55 PM, Tom Hicks wrote:

I've built an LFS system and I've installed rpm. I've created packages for almost everything I have installed. Can anyone tell me an easy way to find all the files on the system that rpm does not control.

I want to create a set of rpms that I can install via rpm --root to install a complete system.

If there isn't an easy way I'll take a hard one too I just can't come up with anything else than installing them to another folder and doing a diff but I believe parsing through the diff output would be a bitch.


Make two lists and diff is the simplest way.

The rpm list is
    rpm -qal | sort -u

The installed list is
    find / | sort -u

Invoke find on known directories like /usr, and grep the rpm list, if you want smaller pieces of the puzzle.

You should not have to install packages in order to generate a rpm file list, use
    rpm -qpl *.rpm | sort -u
if working from packages rather than a database.

Another way to get the same information on a per directory basis is
    cd /usr/bin
    rpm -qf * 2>&1 | grep "not owned"

73 de Jeff

Thanks,
Tom
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux