Saturday, August 26, 2023

Command to find which rpm installed the config/binary file

 

--

yum whatprovides /usr/bin/virsh

 =>outputs which package provides the binary virsh.

-- 

if you don’t know the path , use : 

yum whatprovides */virsh

 --

Monday, August 21, 2023

git log with file details

 

--

For full path names of changed files:

git log --author=<user_mail_id>   --name-only

--

For full path names and status of changed files:

git log --author=<user_mail_id>   --name-status

-- 

For abbreviated pathnames and a diffstat of changed files:

git log --author=<user_mail_id> --stat

--

source:
https://stackoverflow.com/questions/1230084/how-to-have-git-log-show-filenames-like-svn-log-v



Tuesday, May 2, 2023

Update kernel arguments in grub boot loader


Check current kernel command line arguments: 

#grubby --info=ALL | less



Update the kernel command line arguments here: (GRUB_CMDLINE_LINUX)
# vim /etc/default/grub 


Propagate the changes:

#grub2-mkconfig -o /boot/grub2/grub.cfg 


Now, verify the changes:

#grubby --info=ALL |less

Wednesday, March 29, 2023

Podman pull a specific architecture image


// podman pull a image overriding host architecture

podman pull --override-arch=arm64   quay.io/openshift-release-dev/ocp-release:4.X.Y 

// Here the image needs to be manifest listed


get pods running in specific node



// get all node_names

oc get nodes 

// Let's say the node we are interested in is: my_specific_node_name_here

 

// Get pods running in the specific node 

oc get pod --field-selector=spec.nodeName=<my_specific_node_name_here>  --all-namespaces



// Get pods running in the specific node with specific state

oc get pod --field-selector=spec.nodeName=<my_specific_node_name_here>  --all-namespaces

| grep ContainerCreating