What files did `make install` copy, and where?

后端 未结 6 644
没有蜡笔的小新
没有蜡笔的小新 2021-01-04 10:09

Is there a way to get a list of filenames/paths that make install copies to the filesystem? Some packages come with a MANIFEST file, but not the ones that I am

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-04 10:15

    If the install program you're using doesn't support DESTDIR or --prefix (or an equivalent), I have found that it may be possible to identify new files as follows:

    1. Start with as clean a system as possible (a fresh VM image is preferable)
    2. Compile the software, wait a few minutes.
    3. Install the software package.
    4. Find files modified within the past 5 minutes: sudo find / -mmin -5 -type f (the find command has a ton of parameters for querying based on file modification / creation times, but this worked pretty well for me; you just need to narrow the time span so that you pick up the files created by the installer but nothing else).

提交回复
热议问题