yum安装etcd的日志在哪个目录下
如果是rpm,deb等软件包,你可以使用解压缩软件打开看看目录结构就明白了。
linux的软件安装是分散在各个目录里面的,比如/usr/bin /usr/share /usr/lib 等等,总之,你要先弄明白linux的这些目录是什么意思。
当然,也可以集中在一个目录里面。
一些闭源的软件就集中放在/opt里面。
linux下如何查看某个软件 是否安装?安装路径在哪
因为linux安装软件的方式比较多,所以没有一个通用的办法能查到某些软件是否安装了。
总结起来就是这样几类:1、rpm包安装的,可以用rpm -qa看到,如果要查找某软件包是否安装,用 rpm -qa | grep “软件或者包的名字”。
1[root@hexuweb102 ~] rpm -qa | grep ruby2、以deb包安装的,可以用dpkg -l能看到。
如果是查找指定软件包,用dpkg -l | grep “软件或者包的名字”;1[root@hexuweb102 ~] dpkg -l | grep ruby3、yum方法安装的,可以用yum list installed查找,如果是查找指定包,命令后加 | grep “软件名或者包名”;1[root@hexuweb102 ~] yum list installed | grep ruby4、如果是以源码包自己编译安装的,例如.tar.gz或者tar.bz2形式的,这个只能看可执行文件是否存在了,上面两种方法都看不到这种源码形式安装的包。
如果是以root用户安装的,可执行程序通常都在/sbin:/usr/bin目录下。
说明:1其中rpm yum Redhat系linux的软件包管理命令,dpkg debian系列的软件包管理命令
redhat 用yum安装的apache、mysql一般默认安装在哪个目录下?
rpm -qi kernel-headersName : kernel-headersVersion : 3.17.7Release : 300.fc21Architecture: x86_64Install Date: 2015年01月08日 星期四 23时29分00秒Group : Development/SystemSize : 3419473License : GPLv2 and Redistributable, no modification permittedSource RPM : kernel-3.17.7-300.fc21.src.rpmBuild Date : 2014年12月17日 星期三 11时49分28秒Build Host : bkernel01.phx2.fedoraproject.orgRelocations : (not relocatable)Packager : Fedora ProjectVendor : Fedora ProjectURL : http://www.kernel.org/Summary : Header files for the Linux kernel for use by glibcDescription :Kernel-headers includes the C header files that specify the interfacebetween the Linux kernel and userspace libraries and programs. Theheader files define structures and constants that are needed forbuilding most standard programs and are also needed for rebuilding theglibc package.应该是头文件,那就是/usr/include具体分析安装了什么的话可以把kernel-3.17.7-300.fc21.src.rpm 下载下来,rpm2cpio kernel-3.17.7-300.fc21.src.rpm | cpio -t
centos怎么查找yum下载的软件位置
linux下yum install的软件源位置是通过配置文件来配置的,可修改。
/etc/yum.repos.d为本地源位置 配置文件/etc/yum.conf中,详细定义了yum的工作方式和参数。
[root@bspdev etc]# cat /etc/yum.conf [main] //主配置信息 cachedir=/var/cache/yum //保存缓存和数据库文件的位置 keepcache=0 debuglevel=2 //调试信息输出等级 logfile=/var/log/yum.log //日志位置 distroverpkg=redhat-release //yum使用的RPM包distribution版本;tolerant=1 //默认为0,如果为1表示当安装多个包是,失败了继续安装其他;exactarch=1 //精确匹配硬件平台,只有完全相同才更新;obsoletes=1 //当使用升级模式时,一些包没有用了,可以删除(取值1) gpgcheck=0 //安装时是否检查RPM包的PGP签名;plugins=1 //Yum插件是否可用 bugtracker_url=http://bugs.centos.org/yum5bug# Note: yum-RHN-plugin doesn't honor this.metadata_expire=1h installonly_limit = 5# PUT YOUR REPOS HERE OR IN separate files named file.repo# in /etc/yum.repos.d //定义可选的位置 Yum支持的源地址种类很多,有本地、FTP和Internet等。
三种方式的差异仅仅在于客户端访问Yum的方式不同。
本篇仅介绍本地Yum源的配置和使用。
2、配置本地Yum源库 目的是在本地目录上建立一个Yum源库,RPM包来自安装光盘。
使用Mount命令,将插入的光盘Mount到Linux的目录结构上。
[root@bspdev /]# mount /dev/cdrom /media //将光盘mount到/media目录上 mount: block device /dev/cdrom is write-protected, mounting read-only [root@bspdev /]# cd /media [root@bspdev media]# ls –l //挂载CentOS版本;total 484 dr-xr-xr-x 2 root root 432128 Mar 5 10:16 CentOS //CentOS RPM包位置-r--r--r-- 1 root root 14 Mar 2 05:00 CentOS_BuildTag-r--r--r-- 1 root root 212 Oct 1 2009 EULA-r--r--r-- 1 root root 18009 Oct 1 2009 GPL dr-xr-xr-x 4 root root 2048 Mar 5 10:12 images (篇幅原因,省略部分)-r--r--r-- 1 root root 7058 Mar 5 10:22 TRANS.TBL [root@bspdev media]# [root@bspdev CentOS]# pwd/media/CentOS 安装repository工具包。
[root@bspdev CentOS]# pwd/media/CentOS [root@bspdev CentOS]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm warning: createrepo-0.4.11-3.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:createrepo ########################################### [100%] 将rpm包拷贝的准备好的/yum/server中去。
[root@bspdev CentOS]# cd / [root@bspdev /]# mkdir /yum/server -p [root@bspdev media]# cd CentOS [root@bspdev CentOS]# cp * /yum/server/ You have mail in /var/spool/mail/root [root@bspdev CentOS]# 这样,我们将所有的rpm包保存在了/yum/server上。
最后,我们建立reposity的索引。
[root@bspdev CentOS]# createrepo /yum/server2669/2669 - totem-devel-2.16.7-7.el5_6.1.i386.rpm Saving Primary metadata Saving file lists metadata Saving other metadata3、配置参数文件 修改服务端文件,设置行为。
[root@bspdev CentOS]# vi /etc/yum.conf [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=0 //本地一般不需要设置该选项 plugins=1 bugtracker_url=http://bugs.centos.org/yum5bug# Note: yum-RHN-plugin doesn't honor this.metadata_expire=1h installonly_limit = 5# PUT YOUR REPOS HERE OR IN separate files named file.repo# in /etc/yum.repos.d ~ 在客户端,我们创建新的容器和配置文件。
首先我们先将原有的信息备份保存。
-客户端 [root@bspdev CentOS]# cd / [root@bspdev /]# mkdir /etc/yum.repos.d/bak [root@bspdev /]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak/ [root@bspdev /]# cd /etc/yum.repos.d/bak/ [root@bspdev bak]# ls -l total 36-rw-r--r-- 1 root root 1926 Feb 25 16:20 CentOS-Base.repo-rw-r--r-- 1 root root 631 Feb 25 16:20 CentOS-Debuginfo.repo-rw-r--r-- 1 root root 626 Feb 25 16:20 CentOS-Media.repo-rw-r--r-- 1 root root 6118 Feb 25 16:20 CentOS-Vault.repo [root@bspdev bak]# cd / [root@bspdev /]# vim /etc/yum.repos.d/localyum.repo [localyum] //容器名 Name=localyum baseurl=file://yum/server //目录 enable=1 gpgcheck=0 ~
QQ安装软件的目录在哪里?
1.鼠标右键qq快捷方式。
属性。
2.调出属性对话框。
3.属性对话框中的目标就是QQ的默认安装文件夹,点击查找目标就可以转到qq的安装目录。
转载请注明出处51数据库 » yum安装的软件目录在哪
人间哪有真情在4764797