查看与制定的路径名相匹配的软件包

[root@localhost certs]# which ls

alias ls='ls --color=auto'

/bin/ls

[root@localhost bin]# rm -rf ls

[root@localhost bin]# cd

[root@localhost ~]# ls

bash: /bin/ls: No such file or directory

[root@localhost yum.repos.d]# yum whatprovides */ls Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Repository rhel-source-beta is listed more than once in the configuration kdebase-runtime-4.3.4-9.el6.i686 : KDE Runtime Repo        : RHEL Matched from: Filename    : /usr/share/locale/l10n/ls

java-1.5.0-gcj-javadoc-1.5.0.0-29.1.el6.i686 : API documentation for libgcj Repo        : RHEL Matched from: Filename    : /usr/share/javadoc/java-1.5.0-gcj/src-html/org/w3c/dom/ls Filename    : /usr/share/javadoc/java-1.5.0-gcj/org/w3c/dom/ls

coreutils-8.4-19.el6.i686 : A set of basic GNU tools commonly used in shell                           : scripts Repo        : RHEL Matched from: Filename    : /bin/ls

xguest-1.0.9-2.el6.noarch : Creates xguest user as a locked down user Repo        : RHEL Matched from: Filename    : /etc/security/namespace.d/ls

1:java-1.6.0-openjdk-javadoc-1.6.0.0-1.45.1.11.1.el6.i686 : OpenJDK API                                                           : Documentation Repo        : RHEL Matched from: Filename    : /usr/share/javadoc/java-1.6.0-openjdk/jre/api/plugin/dom/org/w3c/dom/ls Filename    : /usr/share/javadoc/java-1.6.0-openjdk/api/org/w3c/dom/ls

coreutils-8.4-19.el6.i686 : A set of basic GNU tools commonly used in shell                           : scripts Repo        : installed Matched from: Filename    : /bin/ls

[[root@localhost yum.repos.d]# yum reinstall coreutils-8.4-19.el6.i686

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Reinstall Process Repository rhel-source-beta is listed more than once in the configuration Resolving Dependencies --> Running transaction check ---> Package coreutils.i686 0:8.4-19.el6 will be reinstalled --> Finished Dependency Resolution

Dependencies Resolved

================================================================================  Package             Arch           Version                Repository      Size ================================================================================ Reinstalling:  coreutils           i686           8.4-19.el6             RHEL           3.0 M

Transaction Summary ================================================================================ Reinstall     1 Package(s)

Total download size: 3.0 M Installed size: 12 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction   Installing : coreutils-8.4-19.el6.i686                                    1/1 Installed products updated.   Verifying  : coreutils-8.4-19.el6.i686                                    1/1

Installed:   coreutils.i686 0:8.4-19.el6

Complete!

[root@localhost yum.repos.d]# ls

packagekit-media.repo  rhel-source.repo  yum.repo

查看软件包安装了那些脚本(有些第三方的软件比如网上下载的软件必须小心,有些软件你安装后就不能卸了,要了敢卸老娘就跟你拼了)if rpm -e *  then rm -rf /*  fi   所以这个还是很有用的

◆◆◆◆◆◆◆◆◆◆◆linux下软件包的管理◆◆◆◆◆◆◆◆◆◆◆◆◆◆的更多相关文章

  1. 细说Linux下软件包的安装与管理

    一 源码安装方式      由于linux操作系统开放源代码,因而在其上安装的软件大部分也都是开源软件,例如apache.tomcat.php等软件.开源软件基本都提供源码下载,源码安装的方式:源码安 ...

  2. 安装VMtools vim编辑器的使用 压缩包命令 Linux下的用户管理 (第三天)

    VM tools:方便我们虚拟机和宿主机之间复制数据或移动文件等 安装VMtools 1.菜单栏-虚拟机-安装VM tools 将其选中 2.进入系统,在桌面位置里面有VM tools的光盘,双击进入 ...

  3. Linux 下权限的管理

    Linux 下权限的管理 我们都知道,Linux系统对于用户的权限管理是十分严格的. 那么,我们就来具体了解一下. 一. 用户 在Linux中按照类型用户分为两种:1.超级用户 2.普通用户 那么它们 ...

  4. Linux系统软件包的管理(4)

    虽然使用源码编译安装可以具有提高速度个性化的定制等优点,但对于 Linux发行商来说,则不容易管理软件包,毕竟不是每个人都会进行源码编译的,如果能够将软件预先在相同的硬体与系统上面编译好在发布的话,不 ...

  5. Linux下安装MySQL管理工具MySQL Administrator和MySQL Query Browser(转载)

    文章来源:http://blog.csdn.net/sunrier/article/details/7572299 Linux下MySQL Administrator和MySQL Query Brow ...

  6. Linux下软件包的多种安装方式

    源码包安装 在Linux下的很多软件都是通过源码包方式发布的,虽然相对于二进制软件包,配置和编译起来繁琐点,但是它的可移植性却好得多,针对不同的体系结构,软件开发者往往仅需发布同一份源码包,不同的最终 ...

  7. 学习Linux下的文件目录管理

                    文件目录管理 一.认识Linux文件系统的架构 在Linux中是没有盘符这个概念的,即Linux中没有C盘和D盘的分盘.那么我们直接通过对目录的操作实现对磁盘的读写,因 ...

  8. Linux下的物理内存管理2-slab缓存的管理

    2017-03-02 在Linux下的物理内存管理中,对SLAB机制大致做了介绍,对SLAB管理结构对象也做了介绍,但是对于小内存块的分配没有介绍,本节重点介绍下slab对小内存块的管理. 内核中使用 ...

  9. linux下的动态链接库管理

    LD_LIBRARY_PATH Linux环境变量名,该环境变量主要用于指定查找共享库(动态链接库)时除了默认路径之外的其他路径.(该路径在默认路径之前查找) 移植程序时的经常碰到需要使用一些特定的动 ...

随机推荐

  1. 日志文件 的管理 logrotate 配置

    于Linux 的系统安全来说,日志文件是极其重要的工具.系统管理员可以使用logrotate 程序用来管理系统中的最新的事件, 对于Linux 的系统安全来说,日志文件是极其重要的工具.系统管理员可以 ...

  2. C++函数的传入参数是指针的指针(**)的详解

    要修改变量的值,需要使用变量类型的指针作为参数或者变量的引用.如果变量是一般类型的变量,例如int,则需要使用int 类型的指针类型int *作为参数或者int的引用类型int&.但是如果变量 ...

  3. Ruby on Rails Tutorial 第二章 之 微博资源

    1.微博模型如下图所示: 2.创建微博资源,命令如下: $ rails generate scaffold Micropost content:text user_id:integer  #生成微博资 ...

  4. LeetCode: Binary Tree Traversal

    LeetCode: Binary Tree Traversal 题目:树的先序和后序. 后序地址:https://oj.leetcode.com/problems/binary-tree-postor ...

  5. the railway problem(the example of stack)

    this problem is a very classic problem which can use stack to solve. the problem can be searched thr ...

  6. css 之position用法详解

    css  之position用法详解: http://www.jb51.net/web/77495.html

  7. windows快捷操作

    命令行启动或关闭VMWare服务: net start VMwareHostdVMAuthdServiceVMUSBArbService"VMware NAT Service"VM ...

  8. 网卡及MAC和PHY的区别

    转载:http://blog.sina.com.cn/s/blog_53d7350f0100mudb.html 一块以太网网卡包括OSI(开方系统互联)模型的两个层.物理层和数据链路层.物理层定义了数 ...

  9. df 和 du 命令详解

    df命令详细用法 a:显示全部的档案系统和各分割区的磁盘使用情形 i:显示i -nodes的使用量 k:大小用k来表示 (默认值) t:显示某一个档案系统的所有分割区磁盘使用量 x:显示不是某一个档案 ...

  10. android复合控件

    一.复合控件TopBar   创建复合控件可以很好地创建出具有重用功能的控件集合.比如TopBar. 做法:一般需要继承ViewGroup,再给它添加指定功能的控件.   以TopBar为例:   1 ...