Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)
Showing posts with label rhel. Show all posts
Showing posts with label rhel. Show all posts

Saturday, December 8, 2018

How to uninstall package/rpm in Linux


How to uninstall package/rpm in Linux:


rpm (redhat package manager) is a powerful tool which can be used to build, install, query, verify, update, and remove/erase individual software packages. 

Below commands can be used to remove packages or rpm:


[root@cloud_home]# rpm –ev [Package Name]

-e = to erase specified package name or rpm

If we want to remove package without removing that package dependency then 

[root@cloud_home]# rpm –ev –-nodeps [Package Name]

Or we can remove package by using yum command as well.
[root@cloud_home]# yum remove [Package Name]

Above commands has given by assuming that we already know the exact package name.

If you don’t know the exact package name then to find out it use below command To get the package name. In below example we are finding package name for httpd:


[root@cloud_home]# rpm –q httpd


Regards,
Kirraan Jadhav

Wednesday, October 8, 2014

How to find Disk SCSI ID in Virtual Machine + Linux

How to find Disk SCSI ID in Virtual Machine + Linux

1. By command line:

a. To see scsi id of all the disks:

#cat /proc/scsi/scsi

root@test ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: VMware   Model: Virtual disk     Rev: 1.0
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: VMware   Model: Virtual disk     Rev: 1.0
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: VMware   Model: Virtual disk     Rev: 1.0

---------------------------------------

b. to find the scsi id of the particular disk:


root@test ~]# ls -d /sys/block/sda/device/scsi_device*

/sys/block/sda/device/scsi_device:0:0:0:0

root@test ~]# ls -d /sys/block/sdc/device/scsi_device*
/sys/block/sdc/device/scsi_device:1:0:0:0

Here: 1:0:0:0 --> scsi1; chaneel 0; id: 0 Lun: 0

or


root@test ~]# ls -d /sys/block/*/device/scsi_device*
/sys/block/sda/device/scsi_device:0:0:0:0  /sys/block/sdc/device/scsi_device:1:0:0:0  /sys/block/sde/device/scsi_device:2:0:0:0  /sys/block/sdg/device/scsi_device:3:0:0:0

/sys/block/sdb/device/scsi_device:0:0:1:0  


2. Through vSphere client:

a. In the vSphere Client, Select the virtual machine and and right-click the select Edit Settings.

b. Select each hard disk to see its SCSI address.


Thanks...
Kirann Jadhav


**Let's Share our knowledge and keep visiting here**