下面是我总结的关于yum的一些用法。大家可以通过命令’yum –help’或‘man yum’来查看更多的帮助: yum install * 安装软件包 使用命令‘yum –help’,部分输入结果如下 Usage: yum [options] COMMAND List of Commands: check Check for problems in the rpmdb check-update Check for available package updates clean Remove cached data deplist List a package's dependencies downgrade downgrade a package erase Remove a package or packages from your system history Display, or use, the transaction history info Display details about a package or group of packages install Install a package or packages on your system list List a package or groups of packages makecache Generate the metadata cache reinstall reinstall a package repolist Display the configured software repositories search Search package details for the given string update Update a package or packages on your system upgrade Update packages taking obsoletes into account 与Ubuntu不太一样的是,若需获得管理员权限,需先使用命令‘su’(没有引号)切换到root权限。也可以在所运行命令前添加‘su -c’。格式如下: 『三、』系统设置
#1,网络连接 # yum -y install yum-fastestmirror #3,安装下载加速插件 #4,安装自动补全命令插件 # yum install bash-completion #5,设置sudo # visudo 然后,在配置文件中找到下面的几行内容: ## Allow root to run any commands anywhere root ALL=(ALL) ALL 然后,在上行内容下面添加下面内容 bentu ALL=(ALL) ALL 提示,其中的bentu改成自己的用户名即可。现在试试是不是可以使用了?^_^ # yum install nautilus-open-terminal 重启或注销下,应该可以生效了。 # yum install ibus ibus-sunpinyin: # yum install ibus-sunpinyin Fcitx小企鹅输入法: #yum install fcitx 安装完成后,在“输入法设置”里面,选择添加上述输入法即可。 #yum install gnome-tweak-tool #9,安装多媒体编码 yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm yum install ffmpeg ffmpeg-libs gstreamer-ffmpeg libmatrosca xvidcore libdvdread libdvdnav lsdvd yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly 这样就差不多了吧?试试一首歌曲,如何? # yum install flash-plugin |