จะ Migrade Radhat9 เป็น Debain

Re: จะ Migrade Radhat9 เป็น Debain

ศึกษาคำสั่งที่แตกต่าง คร่าว ๆ ดังนี้ครับ

Command Function comments
Equivalent Debian Apt-get or dpkg command
Redhat RPM command
Install a packageIn Debian there is no reason to manually download a package - apt-get takes care of that for you
apt-get install jpilot
rpm -hiv jpilot-0.99.2-1.i386.rpm
Get basic package information
dpkg -s jpilot
rpm -qi jpilot
List all files in a package
dpkg -L rsync
rpm -ql rsync
What package owns this file?
dpkg -S /bin/rsync
rpm -qf /usr/bin/rsync
Remove a package
apt-get remove rsync
rpm -e rsync
List all packages
dpkg -l
rpm -qa
Find package based on partial string
dpkg -l 'rsync*'
rpm -qa |grep rsync
update system
apt-get update; apt-get upgrade
up2date -uv
Start, stop restart daemons
/etc/init.d/sshd start; /etc/init.d/sshd stop; /etc/init.d/sshd restart
services sshd start; services sshd stop; services sshd restart

เอามาจาก http://xtronics.com/reference/rpm2apt-dpkg.htm

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <blockquote> <img> <h3> <h4> <h5>
  • Lines and paragraphs break automatically.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.