Filesystem / is 100% full In this example we have the root Filesystem 100% full, it’s possible to expand the … More How to extend root Filesystem using LVM in CentOS 7 / RHEL 7
All articles about Linux
How to install Foreman & Katello (Satellite free version) on CentOS 7
Introduction With Katello & Foreman, you can install and configure the open source version of Red Hat Satellite, to manage … More How to install Foreman & Katello (Satellite free version) on CentOS 7
Change the default Keyboard input Language in Linux
First of all, check your current keyboard language configuration (in this example the current configuration is ES, Spanish) : With … More Change the default Keyboard input Language in Linux
Best way to distribute users’s Public ssh Key to many hosts (no prompt password)
Lab information For this lab, we will distribute the ssh public key of our main server, Ansible Master to two … More Best way to distribute users’s Public ssh Key to many hosts (no prompt password)
Configure SSH trust relationship
To configure a SSH trust relationship providing authentication via RSA public keys is necessary to follow the next steps: Generate … More Configure SSH trust relationship
Ansible: Privilege escalation more secure using Ansible-Vault
– INTRODUCTION Sometimes is necessary to execute the tasks of the Playbook with root user in the remote servers. To … More Ansible: Privilege escalation more secure using Ansible-Vault
Saber cuanta memoria RAM tengo en Linux
Comando para mostrar la memoria RAM Con el comando free mostramos información de la memoria RAM de nuestra máquina linux, … More Saber cuanta memoria RAM tengo en Linux
Filesystem especial /proc
Filesystem especial /proc Es un pseudo sistema de ficheros que se utiliza para permitir el acceso a la información del … More Filesystem especial /proc
Ampliar Swap en Linux
Con LVM: 1. Comprobar espacio libre en el Volume Group: vgdisplay 2. Crear una partición para swap de 15G: lvcreate … More Ampliar Swap en Linux
Cambiar la ruta de instalacion de un paquete rpm
Hay veces que vamos a instalar un paquete rpm en una máquina linux, pero necesitamos cambiar la ruta de instalación que tiene por defecto. Para resolverlo existe alguna solución que os cuento a continuación.
Chequear Relocations
Lo primero que tenemos que hacer es saber si un paquete rpm está habilitado para cambiar su ruta por defecto de instalación o no. Para ello ejecutamos el siguiente comando:
# rpm -qpi telnet-0.17-48.el6.x86_64.rpm | grep Relocations Name : telnet Relocations: (not relocatable)
Si nos muestra como en este caso el mensaje “(not relocatable)“, quiere decir que no está permitido elegir una ruta distinta.
Cambiar la ruta de instalación de un rpm
Sin embargo, si el chequeo de Relocations ha sido satisfactorio, para instalar un paquete rpm en una ruta distinta a la de por defecto, tenemos que utilizar la opcion –prefix.
Por ejemplo si queremos instalar el cliente telnet en /opt tendríamos que ejecutar lo siguiente:
# rpm -ivh --prefix=/opt telnet-0.17-48.el6.x86_64.rpm
Continue reading Cambiar la ruta de instalacion de un paquete rpm