Extract an RPM Package Files Without Installing It

Just recently i’ve stumpled apon a problem, that needed to have a libgcc_4.2.0.so.1 for Java on an old Suse Enterprise 11.
Due to the security structure, it’s not possible to “just install it”.
Moreover the Java-Application does search for the lib in it’s own setup-Folder.

So how do I get the right version?
After googeling some long time, i finally found an Server which still holds the old RPM-file. (I will try to attach the old rpm on this post)
So okay, next question, how do I get the lib out of the rpm?

Lucky – again thanks to google – I found a nice solution on cyberciti.
with just a small command, it’s possible to extract the files within the rpm:

rpm2cpio libgcc42-4.2.1_20070724-17.x86_64.rpm | cpio -idmv
  • i: Restore archive
  • d: Create leading directories where needed
  • m: Retain previous file modification times when creating files
  • v: Verbose i.e. display progress

Download libgcc42-4.2.1_20070724-17.x86_64.rpm as zip-Archive. (Use unzip to … well … unzip 🙂 )

Speedup WordPress with Nginx, HHVM, fastcgi-cache and W3 total Cache on Debian 8

After installing a wordpress for personal reasons, i had to suffer from an awefully slow loading time.
Even the default Theme with no content took literally ages to load.
So what can we do to enhance the speed of WordPress without using a CDN – we can also do this for images etc. pp later on.

This are my steps:

  • Installing
    • nginx
    • hhvm
    • wordpress
  • Adding W3 total cache with nginx
  • Adding nginx fast_cgi cache
  • Tweaking my theme and WordPress
  • Adding some more headers
  • Conclusion
  • Files

 

Installing

I’m asuming you have installed a fresh minimal Debian setup.
First we have to add dependencies to our sources.lst

nano /etc/apt/sources.list

(more…)

Hängende VDIs aus Citrix XenServer entfernen

Tja,
was soll man da sagen, heute ging ein Move eines LVM-Containers schief.
Ich wollte an sich nur schnell die Platte umkopieren, und musste dann zuschauen, wie das NAS, auf den die Platte lief, einfach mal so abgestürzt ist.
Schlussendlich gab es dann ein Problem, dass ich ein nicht zugeordnetes LVM-Volume hatte, das mich das XenCenter nicht löschen lies.
Nach etlichen versuchen und google-sessions habe, ich nun endlich eine Lösung gefunden:

(more…)