title: How to extract a file from an rpm to the current directory?
body: <p>I recently found out about the existence of cpio and how it can be used, among many other things, to extract individual files from an rpm in conjunction with the rpm2cpio tool, like this:</p>
  
  <pre><code>rpm2cpio mypackage.rpm | cpio -idmv ./path/to/individual/file/inside/the/rpm/filename.txt
  </code></pre>
  
  <p>The problem is that this command will create the directory that matches the file's location inside the rpm, i.e., it will create the directory <code>/path/to/individual/file/inside/the/rpm/</code> inside the current directory before actually extracting the file. </p>
  
  <p>Is there any way to extract the file to the current directory without creating the whole directory structure?</p>
  
  <p>Thanks in advance!!</p>