Skip to content

Browse RPM and CPIO archives in Emacs with archive-mode

License

Notifications You must be signed in to change notification settings

legoscia/archive-rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archive-rpm

Browse RPM and CPIO archives in Emacs with archive-mode

Have you ever tried opening a tarball or a zip file in Emacs? You will have noticed that it shows you a list of all the files in the archive, and you can open the individual files. Then perhaps you tried opening an RPM file, hoping to see something similar, only to be faced with a wall of binary data.

This pair of Emacs Lisp modules attempts to remediate that, giving you the same experience with RPM files as with tarballs and other archive files.

(Why two modules? As it turns out, RPM files consist of a bunch of metadata prepended to a compressed CPIO archive, so it makes sense to implement handling of CPIO archives, and then do RPMs on top of that.)

To install these modules, type M-x package-install-file, and select the directory containing archive-rpm.el and archive-cpio.el (don't select one of the modules themselves!). After that, any RPM files you open should display as some metadata plus a file listing.

About

Browse RPM and CPIO archives in Emacs with archive-mode

Resources

License

Stars

Watchers

Forks

Packages

No packages published