Rpm overwrite existing files




















You can also execute rpm -U --replacefiles --replacepkgs Targeting 0 packages installed. Targeting a total of 1 package to be installed. These sections help with managing files among the versions.

Keep track of what you're doing between versions and consider what one might do if they were to skip a version or two. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 12 years, 9 months ago.

Active 2 years, 3 months ago. Viewed 47k times. I have already come up with a few solutions but nothing seems quite right. Maintain custom versions of the rpms containing the original files. Include the files in the rpm with another name and copy them over in the post section.

Use wget in the post section to replace the original files from some known server. Deploy the files as new files, then use symlinks to override the originals.

Improve this question. BenMorel Add a comment. Active Oldest Votes. Depending on the answers to those questions, you may have a couple of other options: Many programs are designed to use a single default configuration file and also to grab configuration files from a. And if the files that you need to modify are config files that don't follow this pattern but could be made to, you can suggest to the package maintainers that they add this capability; this wouldn't help you immediately but would make future releases easier.

For command-line utilities like sendmail and lpr that can be provided by multiple packages, the alternatives system see man alternatives permits more than 1 RPM that provides these utilities to be installed side by side. Again, if the files that you need to modify are command-line utilities that don't follow this pattern but could be made to, you can suggest to the package maintainers that they add this capability.

Config file changes on systems that you administer are better managed through a tool like Cfengine or Puppet rather than through custom RPMs. I think that Red Hat favors Puppet. Edit : Nowadays, Software Collections offers a useful alternative. Red Hat uses this to distribute newer versions of tools for their otherwise stable and long-lived i.

Improve this answer. Josh Kelley Josh Kelley Otherwise, yep, you've been right for a decade on this. Again, everything else you've listed are the right answers.

Vadim Kotov 7, 8 8 gold badges 45 45 silver badges 61 61 bronze badges. Cirque Cirque 49 2 2 bronze badges. Um not quite. As file-roller is crashing on If i use the file-roller GUI selecting all rpm files in nautilus and say extract here this will result in having several folders usr, usr 1 , usr The easiest way to extract the contents of RPM packages is to combine the rpm2cpio and cpio commands.

This gives a command-line way to unpack an RPM in the current directory to get at the package contents, ignoring the package's metadata and dependencies. This will extract the contents to the current directory as well, and all files will be owned by the current user, much like extracting a tarball as a normal user. The cpio command can only extract files to the current directory, so files will always be extracted in the directory where cpio is run.

To put the contents in a different directory, you could use either. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. Extracting multiple rpm files and overwrite existing files Ask Question. Asked 7 years, 7 months ago. Active 7 years, 7 months ago. Viewed 3k times. Is there any app or another way i can use? Improve this question. You might find this interesting: thegeekstuff. Elder Geek thanks for the link so combinding rpm2cpio and cpio should do the trick. So is there a way i can tell rpm2cpio to convert all rpm files in the current directory? Sorry, never used it.

However, you might be able to use a list and pipe it into rpm2cpio. Or write a bash script.



0コメント

  • 1000 / 1000