Accidentally i removed files from /usr/local/bin in a custom OS based on Centos 6.4 release, then i tried to figure out which package used the files (python scripts):

/bin/rpm -qa | while read f;do /bin/rpm -ql $f | grep "usr/local/bin"&&echo -e"  $f";done   

So, no luck. Then installed a minimal centos in a Virtual Box but /usr/local/bin it was empty, how do i get some clue what files where there?

  • 1
    You could look in /usr/local/man and /usr/local/lib to get some idea of what the programs were. Feb 17, 2016 at 20:17

1 Answer 1


Files under /usr/local are not belonging to any of packages. This direcory is used for custom program, scripts that you will install eg. from source code. http://www.pathname.com/fhs/2.2/fhs-4.9.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.