快速地从Redhat系转Ubuntu系
ubuntu官网的,https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora
省得自己去总结了,直接贴过来,备用。
===
SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora
Administrative Tasks
Package Management
Graphical Tools
Command Line Tools
Table of Equivalent Commands
Services
Graphical Tools
Command Line Tools
Network
Graphical Tools
Command Line Tools
It is easy to apply your existing knowledge of Red Hat Enterprise Linux or Fedora to Ubuntu. The key differences between them are covered in this article.
Administrative Tasks
In Red Hat Enterprise Linux and Fedora by default, each administrative user needs to know the root password, in addition to their own password.
In Ubuntu, each user only has one password. Users in the admin group can run command line and graphical applications with elevated privileges. Graphical admin tools prompt for this password when run, and command line tools can be run with root-privileges using sudo.
Package Management
Ubuntu has more packages available than Fedora, so you'll have a better chance of finding what you want in the repositories. As with Fedora, graphical applications will put a link into the Applications menu.
Graphical Tools
The Synaptic package Manager is an excellent tool for finding, fetching and installing packages. Press System -> Administration -> Synaptic Package Manager to start Synaptic.
Command Line Tools
Ubuntu uses apt-get instead of yum, up2date and so on to find, download, and install packages and their dependencies.
Note that, unlike yum, apt-get is only for packages available in repositories - it cannot handle packages you have already downloaded. The dpkg command is used instead.
Table of Equivalent Commands
Below is a table of equivalent commands for package management on both Ubuntu/Debian and Red Hat/Fedora systems.
Task
Red Hat/Fedora
Ubuntu
Adding, Removing and Upgrading Packages
Refresh list of available packages
Yum refreshes each time it's used
apt-get update
Install a package from a repository
yum install package_name
apt-get install package_name
Install a package file
yum install package.rpm
rpm -i package.rpm
dpkg --install package.deb
Remove a package
rpm -e package_name
apt-get remove package_name
Remove a package with configuration files
yum remove package_name
apt-get purge package_name
Check for package upgrades
yum check-update
apt-get -s upgrade
apt-get -s dist-upgrade
Upgrade packages
yum update
rpm -Uvh [args]
apt-get upgrade
Upgrade the entire system
yum upgrade
apt-get dist-upgrade
Package Information
Get information about an available package
yum search package_name
apt-cache search package_name
Show available packages
yum list available
apt-cache dumpavail
List all installed packages
yum list installed
rpm -qa
dpkg --list
Get information about a package
yum info package_name
apt-cache show package_name
Get information about an installed package
rpm -qi package_name
dpkg --status package_name
List files in an installed package
rpm -ql package_name
dpkg --listfiles package_name
List documentation files in an installed package
rpm -qd package_name
List configuration files in an installed package
rpm -qc package_name
dpkg-query --show -f '${Conffiles}\n' package_name
Show the packages a given package depends on
rpm -qR package_name
apt-cache depends
Show other packages that depend on a
given package (reverse dependency)
rpm -q --whatrequires [args]
apt-cache rdepends
Package File Information
Get information about a package file
rpm -qpi package.rpm
dpkg --info package.deb
List files in a package file
rpm -qpl package.rpm
dpkg --contents package.deb
List documentation files in a package file
rpm -qpd package.rpm
List configuration files in a package file
rpm -qpc package.rpm
Extract files in a package
rpm2cpio package.rpm | cpio -vid
dpkg-deb --extract package.deb dir-to-extract-to
Find package that installed a file
rpm -qf filename
dpkg --search filename
Find package that provides a particular file
yum provides filename
apt-file search filename
Misc. Packaging System Tools
Show stats about the package cache
apt-cache stats
Verify all installed packages
rpm -Va
debsums
Remove packages from the local cache directory
yum clean packages
apt-get clean
Remove only obsolete packages from the local cache directory
apt-get autoclean
Remove header files from the local cache directory
(forcing a new download of same on next use)
yum clean headers
apt-file purge
General Packaging System Information
Package file extension
*.rpm
*.deb
Repository location configuration
/etc/yum.conf
/etc/apt/sources.list
Some of the information in this table was derived (with permission) from APT and RPM Packager Lookup Tables.
More technical information about Debian-style packaging can be found in Basics of the Debian package management system and the Debian New Maintainers' Guide.
Services
Services on Ubuntu are managed in a broadly similar way to those on Red Hat.
Graphical Tools
Services can be configured by clicking System -> Administration -> Services. A tool called Boot-Up Manager is also available.
Command Line Tools
Below is a table of example commands for managing services. The apache/httpd service is used as an example.
Task
Red Hat / Fedora
Ubuntu
Ubuntu
(with sysv-rc-conf or sysvconfig)
Starting/stopping services immediately
service httpd start
invoke-rc.d apache start
service apache start
Enabling a service at boot
chkconfig httpd on
update-rc.d apache defaults
sysv-rc-conf apache on
Disabling a service at boot
chkconfig httpd off
update-rc.d apache purge
sysv-rc-conf apache off
Note: Whereas Red Hat and Fedora servers boot into runlevel 3 by default, Ubuntu servers default to runlevel 2.
Note: The service and invoke-rc.d commands call init scripts to do the actual work. You can also start and stop services by doing e.g. /etc/init.d/apache start on Ubuntu, or /etc/init.d/httpd start on Red Hat/Fedora.
Network
Graphical Tools
Fedora/RHEL have system-config-network, ubuntu pre 10.04 had gnome-nettool to edit static ip address, since 10.04 nm-connection-editor is the best choice. For Ubuntu 10.04 Studio there is only manual editing of files since NetworkMontor is not included
Command Line Tools
- ubuntu networking for basic and advanced users
快速地从Redhat系转Ubuntu系的更多相关文章
- 万亿级日志与行为数据存储查询技术剖析——Hbase系预聚合方案、Dremel系parquet列存储、预聚合系、Lucene系
转自:http://www.infoq.com/cn/articles/trillion-log-and-data-storage-query-techniques?utm_source=infoq& ...
- Linux下载_Linux系统各种版本ISO镜像下载(redhat,centos,oracle,ubuntu,openSUSE)
以下是风哥收集的Linux系统各种版本ISO镜像下载,包括redhat,centos,oracle,ubuntu等linux操作系统. Linux下载1:红帽RedHat Linux(RHEL5.RH ...
- centos系统和Ubuntu系统命令区别以及常见操作
目录 一.前言 二.系统环境 三.命令区别 3.1 使用习惯和命令区别 3.2 服务管理的区别 3.3 软件包信息区别 四.Ubuntu系统常见操作 4.1 Ubuntu系统apt和apt-get的区 ...
- ubuntu系統如何啟動root用戶登陸?
之前分享過關於這個問題的文章,現在自己在分享一個關於這個問題的文章給大家.為了學習Linux,一氣之下把win10的換成了ubuntu的系統.安裝就不給大家介紹了(網上很多教程). 在我們安裝好之後, ...
- windows系统和ubuntu虚拟机之间文件共享——samba
参考:http://www.cnblogs.com/phinecos/archive/2009/06/06/1497717.html 一. samba的安装: sudo apt-get insall ...
- 利用Sambaserver在Ubuntu系统和Win7系统间共享目录
1 介绍 如今是网络化的时代,我们每一个人要更好的发展.离不开网络化.信息化的支持.利用网络的支持.在不同的操作系统间共享文件等信息,是计算机专业学生必备的一项技能. 本文所讲的就是怎样建立.设置.链 ...
- Debian&&ubuntu系安装MegaCli
MegaCli这个命令可以用来监控raid状态.磁盘状况等,最近上了一批ubuntu系统跑openstack,问题是MegaCli在官网上只有rpm格式的包,没有deb的包,但是还是有办法解决的,rp ...
- debian系(Ubuntu)安装jenkins(持续集成)
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'ec ...
- 更换jupyter notebook风格主题、修改默认工作路径(Ubuntu系统和Win系统)
默认的风格对代码关键词的颜色提醒很不明显,而且白色背景长久使用非常刺眼,所以考虑更换主题. 在更换途中,发现代码输出行,前几个字符被遮挡显示不出来,找了很久才解决,备忘一些要点. 1:替换主题方法 h ...
随机推荐
- Linux内核分析第三周学习博客——跟踪分析Linux内核的启动过程
Linux内核分析第三周学习博客--跟踪分析Linux内核的启动过程 实验过程截图: 过程分析: 在Linux内核的启动过程中,一共经历了start_kernel,rest_init,kernel_t ...
- nginx php fastcgi Connection reset by peer的原因及解决办法
Connection reset by peer 这个错误是在nginx的错误日志中发现的,为了更全面的掌握nginx运行的异常,强烈建议在nginx的全局配置中增加 error_log logs ...
- C++引用C程序库函数
C与C++混合编程 C++里面如何声明const void f(void)函数为C程序中的库函数. void f(void)用c++ compiler来编译,在产生的obj文件中的名字变成了 $f@@ ...
- WIFI Direct(Wi-Fi P2P)
Wi-Fi Direct技术是Wi-Fi产业链向蓝牙技术发起的挑战,它试图完全取代蓝牙 Wi-Fi Direct是一种点对点连接技术,它可以在两台station之间直接建立tcp/ip链接,并不需要A ...
- Spring 源码学习(3) —— 增加属性注册编辑器
创建一个实体类UserManager: /** * @filename: UserManager.java * @desc 增加属性编辑器功能测试实体类 * @author: Wang Chinda ...
- HDU6128 二次剩余/二次域求二次剩余解/LL快速乘法取模
LINK 题意:求满足模p下$\frac{1}{a_i+a_j}\equiv\frac{1}{a_i}+\frac{1}{a_j}$的对数,其中$n,p(1\leq n\leq10^5,2\leq p ...
- JVM调优总结(6):新一代的垃圾回收算法
垃圾回收的瓶颈 传统分代垃圾回收方式,已经在一定程度上把垃圾回收给应用带来的负担降到了最小,把应用的吞吐量推到了一个极限.但是他无法解决的一个问题,就是Full GC所带来的应用暂停.在一些对实时性要 ...
- 《HTML5编程之旅》系列二:Communication 技术初探
本文主要探讨用于构建实时跨源通信的两个模块:跨文档消息通信(Cross Document Messaging)和XMLHttpRequestLevel2.通过这两个模块,我们可以构建不同域间进行安全 ...
- DHTML中window的使用
window对象是对浏览器窗口进行操作的对象.以下列出一些常用的对象(三级为对象的方法.属性) |-navigator:是对浏览器信息进行操作的对象 |-history:包含用户浏览过的url信息 | ...
- 微信小程序开发(二)创建小程序
安装完“微信Web开发者工具”后,手机扫描二维码进入页面. 点击“添加项目”,填入之前获得的AppID(无AppID可忽略),输入项目名称“Hello WXapplet”,选定本地文件夹作为项目目录. ...