rpm包

rpm -qa
rpm -qa | grep python

deb包

dpkg -l 
dpkg -l | grep python

yum

yum list installed 
yum list installed | grep python

debian查看已安装的包

sudo apt list --installed