Posts

Showing posts from July, 2020

Get the list of RPM installed in CentOS

Enviornment CentOS 7 minimal installation Command rpm -qa -a, --all query/verify all packages -q Specify a query It lists all packages installed in system. User can filter the result by using a pipe and grep. eg Check any packages installed with name php rpm -qa | grep php

Setup Ruby on CentOS 8

This guide explains how to setup Ruby on CentOS using Ruby version manager. Prerequisite  CentOS 8 minimal installation with latest available updates Resolve Dependencies  To begin with Ruby installation, it requires a set of packages on the system. Following steps to resolve the same.  dnf install curl     dnf install gnupg2      dnf install tar Installing Ruby Version Manager ( RVM )      RVM is a command-line tool that allows us to install, manage, and work with different ruby environments.      Install the latest stable version of RVM on your system using the following command. This command will automatically download all required files and install on your system. Install GPG keys As a first step install GPG keys used to verify installation package: Key can be found at RVM website Eg : gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105...

Ruby Gem Environment Path

By running following command helps to retrieve environment of details of Ruby Gem gem environment sample output from centos 8  RubyGems Environment:   - RUBYGEMS VERSION: 3.0.8   - RUBY VERSION: 2.6.5 (2019-10-01 patchlevel 114) [x86_64-linux]   - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-2.6.5   - USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.6.0   - RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-2.6.5/bin/ruby   - GIT EXECUTABLE:   - EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-2.6.5/bin   - SPEC CACHE DIRECTORY: /root/.gem/specs   - SYSTEM CONFIGURATION DIRECTORY: /usr/local/rvm/rubies/ruby-2.6.5/etc   - RUBYGEMS PLATFORMS:     - ruby     - x86_64-linux   - GEM PATHS:      - /usr/local/rvm/gems/ruby-2.6.5      - /usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/gems/2.6.0   - GEM CONFIGURATION:      - :update_sources => true      - :verbos...