redhat 㨠debian ã®ç®¡çç³»ã³ãã³ã
ä»äºã§ã¯ ãµã¼ã㯠RedhatEL ã使ã£ã¦ããã®ã§ãRedhatç³»ã®ã³ãã³ãã¯åãã®ã§ããã
ãµã¼ãã¨ãã¦Debianã¯ãã¾ã使ãæ©ä¼ããªãã®ã§ç®¡çç³»ã³ãã³ããåããªããªãã¨ããããã¾ãã
ã¨ããããåå¿é²ãééã£ã¦ããããå ãªãããæ¸ãã¦ãªããã¨æãåºããã追å ããäºå®ã
ãµã¼ãã¹
æ©è½ | Redhatç³» | Debianç³» |
---|---|---|
ãµã¼ãã¹ä¸è¦§ | chkconfig --list | sysv-rc-conf --list |
ãµã¼ãã¹ã®On/Off | chkconfig |
sysv-rc-conf |
ãµã¼ãã¹ã¬ãã«ã®On/Off | chkconfig --level <1/2/3/4/5> |
sysv-rc-conf --level <1/2/3/4/5> |
ãµã¼ãã¹ã®ç»é² | chkconfig --add |
update-rc.d |
ãµã¼ãã¹ã®åé¤(RCãªã³ã¯åé¤) | chkconfig --del |
update-rc.d -f |
ã°ã©ãã£ã«ã«ãªãµã¼ãã¹æä½ | ntsysv | rcconf or sysv-rc-conf |
ããã±ã¼ã¸
æ©è½ | Redhatç³»(rpm) | Debianç³»(dpkg) |
---|---|---|
ããã±ã¼ã¸ä¸è¦§ | rpm -qa | dpkg -l |
ããã±ã¼ã¸ã®è©³ç´°ä¸è¦§ | rpm -qa --queryformat="%{name}.%{arch}\n" *2 | |
ããã±ã¼ã¸ã®ä¸èº«ä¸è¦§ | rpm -ql |
dpkg -L |
ãã¡ã¤ã«ããããã±ã¼ã¸ãæ¤ç´¢ | rpm -qf |
dpkg -S |
ã¤ã³ã¹ãã¼ã« | rpm -ivh |
dpkg -i |
ã¢ãããã¼ã | rpm -Uvh |
dpkg -i |
ã¢ãããã¼ã2 | rpm -Fvh |
dpkg -E |
ä¾åé¢ä¿ç¡è¦ã§ã¤ã³ã¹ãã¼ã« | rpm -ivh --nodeps |
dpkg -i --force-depends |
æ¢ã«ã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ãä¸æ¸ããã¦ã¤ã³ã¹ãã¼ã« | rpm -ivh --replacepkgs |
dpkg -i --force-configure-any |
å¼·å¶ã¤ã³ã¹ãã¼ã« | rpm -ivh --force |
dpkg -i ---force-all |
ã¢ã³ã¤ã³ã¹ãã¼ã« | rpm -e |
dpkg -r |
å®ç¾©ãã¡ã¤ã«å«ãå®å ¨ã«ã¢ã³ã¤ã³ã¹ãã¼ã« | dpkg -p |
|
ä¾åé¢ä¿ç¡è¦ã§ã¢ã³ã¤ã³ã¹ãã¼ã« | rpm -e --nodeps |
dpkg -r --force-depends |
ããã±ã¼ã¸ã®ä¸èº«ã®ãã¡ã¤ã«ä¸è¦§ | rpm2cpio |
dpkg -c |
ããã±ã¼ã¸ãå±é | rpm2cpio |
dpkg -x |
ç²ããã®ã§ãyumç³»ã¨aptç³»ã¯æãã¤ãããæ¸ããã¨ã
*1:K90foo,S90fooã®ããã«åªå é ä½ã®æ°åãæå®ãã¾ã
*2:æè¿ã¯x86_64ã¨x86ã®rpmãæ··å¨ãã¦ãããã¨ãããã®ã§ã¢ã¼ããã¯ãã£ä»ã表示
*3:rpm -qf /usr/bin/find ã®ããã«ãã«ãã¹ã§æå®
*4:dpkg -S /usr/bin/find ã®ããã«ãã«ãã¹ã§æå®
*5:rpmdev-extracã£ã¦ã®ãããããª