最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

yum - Is there a way to preserver timestamp of modified files in rpm package? - Stack Overflow

programmeradmin3浏览0评论

I am trying to create a rpm with cumulative changes which is a tar ball i.e the tar contains all the modified files from GA release to current patch.

When I try to create a rpm build i use cp -Rp command to preserve the timestamp of the files but when i install using yum install the time changed to to the latest i.e installed time. I want to preserve the files time stamp because to know when the files was originally added in the tar ball. I have few queries

  1. Is there anyway to retain the timestamp?
  2. when i install using yum install will it replace the files like tar extract or skip the files which are same as the installation location?
  3. Is there a way to give custom location while yum install (or any other way ) ?

Thanks in advance

发布评论

评论列表(0)

  1. 暂无评论