How to check the swap memory usage by a process in Linux

How to check the swap memory usage by a process in Linux

Earlier I had written an article on swappiness and different commands to check memory usage per process on Linux here I will show you some of the methods which can be used to check the swap memory utilisation. Below article is tested and validated on Red Hat Enterprise Linux 7. IMPORTANT NOTE:  There is no way ... Read more How to check the swap memory usage by a process in Linux

How to execute a script at %pre, %post, %preun or %postun stage (spec file) while installing/upgrading an rpm

How to execute a script at %pre, %post, %preun or %postun stage (spec file) while installing/upgrading an rpm

RPM spec files have several sections which allow packages to run code on installation and removal. These bits of code are called scriptlets and are mostly used to update the running system with information from the package. When scriptlets are called, they will be supplied with an argument. This argument, accessed via $1 (for shell ... Read more How to execute a script at %pre, %post, %preun or %postun stage (spec file) while installing/upgrading an rpm

How to sign a key using gpg key (password or password-less) to an rpm in Linux

In my last article I had shared the steps to build an rpm from scratch How to build a signed rpm from scratch by building a source archive using Red Hat Linux In this article I will share the steps to sign GPG key to an rpm Step 1: Generate GPG key Execute the below ... Read more How to sign a key using gpg key (password or password-less) to an rpm in Linux

How to change rpmbuild (_tmppath) in a spec file (rpmbuild ignored directory) Linux

Below article explains in detail Step by Step Guide to build an rpm from scratch by building a source archive using Red Hat Linux By default when we attempt to build an rpm, the rpmbuild command will look for the below directories under /root/ or the user home folder drwxr-xr-x 4 root root  46 May ... Read more How to change rpmbuild (_tmppath) in a spec file (rpmbuild ignored directory) Linux

How to build a signed rpm from scratch by building a source archive using Red Hat Linux

How to build a signed rpm from scratch by building a source archive using Red Hat Linux

Below explains every field of an rpm in detail Understanding an rpm package There are two types of RPM packages: source RPM (SRPM) binary RPM SRPMs and binary RPMs share the file format and tooling, but have different contents and serve different purposes. An SRPM contains source code, optionally patches to it, and a SPEC ... Read more How to build a signed rpm from scratch by building a source archive using Red Hat Linux

How to configure Password-less authentication from Windows to Linux using Putty

How to configure Password-less authentication from Windows to Linux using Putty

I have already written few articles to configure passwordless authentication between two Linux servers, here in this article I will share the steps to configure password less login from Windows to Linux box using Putty My setup: ========================== Windows Box: 192.168.1.2 Linux Box: 192.168.1.5 ========================== You can download and install Putty from their official page ... Read more How to configure Password-less authentication from Windows to Linux using Putty