Skip to main content

Install and update the software packages.

 Install and update the software packages:


package: Its a container that contains the software related programs, files and executables.


system updates and repositories:


yum (rhel and centos) command installs the packages that are defined in the linux system.


configuration files location: /etc/yum.repos.d


apt-get (ubuntu debain)


rpm (redhat package manager)


Difference between yum and rpm:


yum downloads the package from the internet and installs it as well.


rpm just installs the package which is allready downloaded on the linux machine.


In some companies internet access is not allowed. In that case repos are setup locally on another server within the same network.


yum install ntp :it will first check in the machine if ntp is installed or not. if not installed, it will install the ntp package.


rpm -qa: gives the list of the packages that are installed in the linux system.


rpm -qa | wc -l: gives the count of the packages that are installed in the system, it is not actually couting the packages, but counting the lines.



rpm -qa | grep bind: search for bind packages in all the package list.


yum install bind: check for the bind package in the system, if it is not installed go to the internet and download and installs the package.


 

rpm -e <package name>: removes the package. yum remove bind :removes the bind package

.............,........ 


system upgrades and patch management:


Two types of upgrades:


Major version: 5.6.7


minor versions: 7.3 to 7.4


minor version upgrade can be done through yum command, but major version upgrade cant be 

done through yum command.


...................,. 


yum update vs.upgrade


upgrade: delete the old package and keeps the new upgraded package.


update: does not delete the old package


................ 


cat /etc/os-release: gives the info of the OS.


cat /etc/redhat-release: gives the info of the OS.


yum update: shows the list of the packages that needs an update.


Advance package management:


Installing package

deleting the package

upgrading the package

view package details info

identify source or location information.

package configuration files.


........................ 


rpm -qa | grep ksh: check if the korn shell package is installed or not in the linux system.


yum install ksh: installs korn shell package and other packages related to ksh. yum remove ksh: remove the packages related to ksh


rpm -hiv ksh-20122355-134.e17.x86_64.rpm: installs the downloaded package. rpm -qi ksh-20122355-134.e17.x86_64.rpm: gives the detailed information of the package ksh.


rpm -e ksh-20122355-134.e17.x86_64.rpm: delete the package ksh.


rpm -qc ksh-20122355-134.e17.x86_64.rpm: list the configuration files of the package ksh. which ksh: gives the full path of the ksh command.


rpm -qf /usr/bin/ksh: gives the package that is associated with ksh command.


which pwd: gives the full path of pwd command.


rpm -qf /usr/bin/pwd: gives the output coreutils. it means pwd command belongs to coreutils.


Comments

Popular posts from this blog

Post build configurations on Redhat VM

  ************************************* Post build configuration on Linux VM: ************************************* Set the hostname. hostnamectl set-hostname <Servername> ***************************************** Network configuration : Make sure VM gets the ipv4 ip address either from DHCP or assign the static ip address to it.   Question : How to assign the static ip address to the linux machine using the nmcli ?  Answer: fire the below commands: nmcli device nmcli connection modify enpos3 ipv4.addresses 10.253.1.34/24 nmcli connection modify enpos3 ipv4.gateway 10.253.1.1 nmcli connection modify enpos3 ipv4.method manual nmcli connection modify enpos3 ipv4.dns 8.8.8.8 nmli connection down enpos3 nmcli connection up enpos3 ip address show enpos3 nmcli connection show ************************†****************** Register to RHΝ. Register to redhat network if the linux vm is redhat vm. subscription-manager register --org <org>  --activationkey <activat...

AWS cloud practitioner notes

 AWS Certified cloud practitioner: What is cloud computing? cloud computing is the on demand delivery of the compute power, database storage, applications and other IT resources through a cloud services platform with pay-as-you-go pricing. you can provision exactly the right type and size of the computing resources you need. you can access many resources as you need almost instantly like servers, storage,databases and application services as well. Amazon web services owns and maintains the network connected hardware required for these application services, while you provision and use what you need via a web application. ***************************************** Deployment models of Cloud: Private Cloud: Cloud service used by a single organisation, not exposed to the public. complete control. security of the sensitive applications meeting specific business needs. ********************** Public Cloud: Cloud resources owned and operated by the third party. cloud service provider delive...