# find which package the cmd 'a.out' belongs toyum provides*/bin/a.out
# check if 'wget' package is installedyum list installed |grepwget# download 'wget' package to /tmp/rpm/yum install yum-plugin-downloadonly
yum download --downloaddir=/tmp/rpm/--downloadonlywget# list all files in 'wget' package
rpm -qlp/tmp/rpm/wget*.rpm
# another method listing files without downloadingyum install yum-utils
repoquery -lwget
# find which package the cmd 'a.out' belongs to
yum provides */bin/a.out
# check if 'wget' package is installed
yum list installed | grep wget
# download 'wget' package to /tmp/rpm/
yum install yum-plugin-downloadonly
yum download --downloaddir=/tmp/rpm/ --downloadonly wget
# list all files in 'wget' package
rpm -qlp /tmp/rpm/wget*.rpm
# another method listing files without downloading
yum install yum-utils
repoquery -l wget
apt
1
2
3
4
5
6
# find which package 'Python.h' belongs to
apt installapt-fileapt-file updateapt-file search Python.h
# list all files in 'wget' packagedpkg-Lwget
# find which package 'Python.h' belongs to
apt install apt-file
apt-file update
apt-file search Python.h
# list all files in 'wget' package
dpkg -L wget
1576-1612 Rudolf II/欧洲三十年战争
1717-1780 Maria Theresa 玛丽亚_特蕾莎/Franz Stephan 弗朗茨_斯蒂芬之妻
Marie Antoinette 玛丽_安托瓦内特/路易十六王后
1837-1898 Elisabeth Amalie Eugenie 茜茜公主/被刺杀
1863-1914 Archduke Franz Ferdinand of Austria 弗朗茨·斐迪南大公/茜茜公主之侄/被Gavrilo Princip刺杀的萨拉热窝事件
1576-1612 Rudolf II/欧洲三十年战争
1717-1780 Maria Theresa 玛丽亚_特蕾莎/Franz Stephan 弗朗茨_斯蒂芬之妻
Marie Antoinette 玛丽_安托瓦内特/路易十六王后
1837-1898 Elisabeth Amalie Eugenie 茜茜公主/被刺杀
1863-1914 Archduke Franz Ferdinand of Austria 弗朗茨·斐迪南大公/茜茜公主之侄/被Gavrilo Princip刺杀的萨拉热窝事件
after running 'sensors-detect' command, kernel modules controlling fan speed should be loaded.
here is an occasion with 'Nuvoton NCT6102D/NCT6104D/NCT6106D Super IO Sensors' detected.
as nct6775 document said:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#/sys/class/hwmon/hwmon4
pwm[1-7]
- this file stores PWM duty cycle or DC value (fan speed) in range:
0(lowest speed) to 255(full)
pwm[1-7]_enable
- this file controls mode of fan/temperature control:
* 0 Fan control disabled (fans set to maximum speed)
* 1 Manual mode, write to pwm[0-5] any value 0-255
* 2 "Thermal Cruise" mode
* 3 "Fan Speed Cruise" mode
* 4 "Smart Fan III" mode (NCT6775F only)
* 5 "Smart Fan IV" mode
...
#/sys/class/hwmon/hwmon4
pwm[1-7]
- this file stores PWM duty cycle or DC value (fan speed) in range:
0 (lowest speed) to 255 (full)
pwm[1-7]_enable
- this file controls mode of fan/temperature control:
* 0 Fan control disabled (fans set to maximum speed)
* 1 Manual mode, write to pwm[0-5] any value 0-255
* 2 "Thermal Cruise" mode
* 3 "Fan Speed Cruise" mode
* 4 "Smart Fan III" mode (NCT6775F only)
* 5 "Smart Fan IV" mode
...
ps1. if set pwm[1-7]_enable to 0, we will not be able to change it to other value, unless reboot linux.
ps2. I still can't find a common way to turn off fans using ipmitool.
IPMI: Intelligent Platform Management Interface
BMC: Baseboard Management Controller
FRU: Field Replaceable Unit