Extracting Files from RPM Packages
来源:互联网 发布:中国自主软件 编辑:程序博客网 时间:2024/06/01 10:40
Extracting Files from RPM Packages
Software installed on your computer may become damaged. If this happens, it's good to know that you can extract files from the packages and copy them to the original location of the file.
Every RPM package consists of two parts: the metadata part that describes what is in the package and acpio archive that contains the actual files in the package. If a file has been damaged, you can start with therpm -qf query option to find out from what package the file originated. Next userpm2cpio | cpio -idmv to extract the files from the package to a temporary location. InExercise 4.5, you'll learn how to do this.
In this exercise, you'll learn how to identify from which package a file originated. Next you'll extract the package to the/tmp directory, which allows you to copy the original file from the extracted RPM to the location where it's supposed to exist.
Use rm -f /usr/sbin/modem-manager. Oops! You've just deleted a file from your system! (It normally doesn't do any harm to deletemodem-manager, because it's hardly ever used anymore.
Use rpm -qf /usr/sbin/modem-manager. This command shows that the file comes from the ModemManager package.
Copy the ModemManager package file from the repository you created inExercise 4.1 to the /tmp directory by using the cp /repo/ModemM[Tab] /tmp command.
Change the directory to the /tmp command, and userpm2cpio |cpio -idmv to extract the package.
The command you used in step 4 created a few subdirectories in/tmp. Activate the directory /tmp/usr/sbin, where you can find the modem-manager file. You can now copy it to its original location in/usr/sbin.
- Extracting Files from RPM Packages
- Extracting Metada From Files
- Extracting still pictures from movie files, with C#
- Extracting DDLs from Oracle
- How to export files from rpm file on ubuntu system
- Extracting Datafile Blocks From ASM
- Python.Extracting Data from XML
- Python.Extracting Data from JSON
- Remove unused rpm packages
- Linux / Cygwin Extracting files 解压文件
- 官网 Mysql Installing MySQL on Linux Using RPM Packages from Oracle
- Extracting Multiple Resultsets from a DataReader
- Extracting Structured Data from Web Pages
- Extracting Information from Text With NLTK
- Extracting images from Apps in the AppStore
- Extracting Unique Elements From a List
- Extracting Single Images from a CImageList object
- Extracting Data from array of hashes Ruby
- Maven POM文件、多模块以及依赖关系
- 用 SDK Manager.exe 无法更新 Android SDK Tools 的解决办法
- 四、子类继承父类要注意以下几点
- wuauclt.exe进程和wuauclt病毒的查杀清理方法
- nginx新手教程
- Extracting Files from RPM Packages
- Vijos P1615 旅行
- cisvc.exe进程占用大量内存和CPU的解决方法
- HBase集群出现NotServingRegionException问题的排查及解决方法
- open cv+C++错误及经验总结(四)
- 不想开学,17岁熊孩子PS“校长东莞嫖娼被抓”
- java jxl操作excel进行导入导出
- Github 中 Watch 和 Star 的区别
- vForge学习笔记2(基本物理、动画人物)