RHCE——安装和更新软件包
来源:互联网 发布:java开发师就业方向 编辑:程序博客网 时间:2024/06/05 23:51
yum软件包管理
[root@iZtoz99sjuwqcnZ etc]# yum repolist [root@iZtoz99sjuwqcnZ etc]# yum list yum*[root@iZtoz99sjuwqcnZ etc]# yum list installed[root@iZtoz99sjuwqcnZ etc]# yum grouplist
yum管理软件更新
[student@localhost 桌面]$ yum list 'http*'
软件信息
[student@localhost 桌面]$ yum info httpd已加载插件:langpacks, product-id, subscription-manager已安装的软件包名称 :httpd架构 :x86_64版本 :2.4.6发布 :17.el7大小 :3.7 M源 :installed来自源:anaconda简介 : Apache HTTP Server网址 :http://httpd.apache.org/协议 : ASL 2.0描述 : The Apache HTTP Server is a powerful, efficient, and extensible : web server.
[student@localhost ~]$ yum provides /var/www/html/已加载插件:langpacks, product-id, subscription-managerhttpd-2.4.6-17.el7.x86_64 : Apache HTTP Server源 :@anaconda/7.0匹配来源:文件名 :/var/www/html/
软件的安装更新与删除
[student@localhost ~]$ yum install vi[student@localhost ~]$ yum remove vi[student@localhost ~]$ yum update
查询软件组的信息
[root@iZtoz99sjuwqcnZ ~]# yum groupinfo "开发工具"已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile组:开发工具 组编号:development 描述:基本开发环境。 必要的软件包: autoconf automake binutils...
查看事务历史记录
[root@iZtoz99sjuwqcnZ ~]# yum history [root@iZtoz99sjuwqcnZ ~]# tail -f /var/log/yum.log
启用yum软件存储库
[root@iZtoz99sjuwqcnZ ~]# yum repolist all//添加软件库地址[root@iZtoz99sjuwqcnZ ~]# yum-config-manager --add-repo="源地址"已加载插件:fastestmirror, langpacksadding repo from: 源地址[源地址]name=added from: 源地址baseurl=源地址enabled=1//自动生成.repo文件[root@iZtoz99sjuwqcnZ ~]# ll /etc/yum.repos.d/-rw-r--r-- 1 root root 69 8月 2 14:02 源地址.repo
手动添加存储库
将文件放在/etc/yum.repos.d文件下,且手动添加必须用 .repo 结尾
且格式需要如下
[epel]name=Extra Packages for Enterprise Linux 7 - $basearchbaseurl=http://mirrors.aliyuncs.com/epel/7/$basearchfailovermethod=priorityenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
检验RPM数据包
使用yum安装rpm软件
yum localinstall wonderwidgets-10-4.x86_64.rpm
手动编译安装软件
一般厂商都会配有开发文档
类似于 readme 或者 info 等软件
下面仅仅写几个例子,供参考
#tar -xf httpd-2.4.12.tar.gz#cd httpd-2.4.12#yum -y install apr-devel apr-util-devel pcre-devel openssl-devel#./configure --prefix=/usr/local/apache2 --enable-ssl --sysconfdir=/etc/httpd#make#make install#/usr/local/apache2/bin/apachectl start#netstat -ntlp #/usr/local/apache2/bin/apachectl stop#tar -xf nginx-1.7.11.tar.gz #cd nginx-1.7.11#useradd -r -s /sbin/nologin nginx#./configure --prefix=/usr/local/nginx --with-http_ssl_module --conf-path=/etc/nginx/nginx.conf --user=nginx --group=nginx#make #make install#/usr/local/nginx/sbin/nginx#netstat -ntlp#/usr/local/nginx/sbin/nginx -t#/usr/local/nginx/sbin/nginx -s stop#tar -xf rdesktop-1.8.3.tar.gz#cd rdesktop-1.8.3#yum -y install libX11-devel#./configure --prefix=/usr/local/rdesktop --disable-credssp --disable-smartcard#make #make install#PATH=$PATH:/usr/local/rdesktop/bin#rdesktop -a 32 -g 800*600 -u administrator 172.25.0.100
阅读全文
0 0
- RHCE——安装和更新软件包
- RHEL7(124)安装和更新软件包
- RHEL十二(安装和更新软件包)
- 1-13yum安装和更新软件包
- RHCE——分析和存储日志
- Spacewalk 安装更新删除软件包
- RHCE——配置和保护OPENSSH服务
- RHCE——控制服务和守护进程
- RHCE——配置链路聚合和桥接
- Fedora/Redhat在线安装更新软件包 yum
- Suse各种软件包安装更新档...
- OpenWRT开发之——创建软件包(有更新)
- deb软件包安装和卸载
- 软件包管理——rpm和yum
- RHCE认证视频笔记——汇总贴(5月26日更新中……)
- centos查看安装的软件包和软件包数量
- RPM安装、反安装和升级软件包
- RPM安装、反安装和升级软件包
- POJ 1745 Divisibility(01背包变种)
- Activity的启动模式,任务栈Task,intent的Flags
- 数据结构学的到底是什么,和算法的关系
- sql日期时间格式转换大全
- S3C2440中断体系介绍
- RHCE——安装和更新软件包
- 入门 Webpack,看这篇就够了
- 求两个整数之间的汉明距离-salem
- The Suspects 带权值的并查集
- 这瓶普普通通的六神花露水_凭什么能卖到500块?
- Android程序员学WEB前端(4)-HTML(4)-注册页面-Sublime
- 【python】stack,hstack,vstack
- docker使用常见问题
- Ace_Admin_Bootstrap 模板跳转后记住侧边栏状态