linux搜索某个函数,linux查找某个命令属于哪个包的方法

本文介绍了如何通过yum命令查找ntsysv工具所对应的RPM包(ntsysv-1.3.49.3-2.el6_4.1.x86_64),并展示了使用rpm命令获取包详细信息的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

linux 命令属于哪一个RPM包 什么版本

[root@lb ~]# yum whatprovides

*bin/ntsysvLoaded plugins: fastestmirror,

security

Loading mirror speeds from cached hostfile

* base: mirrors.tuna.tsinghua.edu.cn

* epel: mirrors.hust.edu.cn

* extras: mirrors.btte.net

* updates: mirrors.btte.net

ntsysv-1.3.49.3-2.el6_4.1.x86_64 : A tool to set the stop/start of

system services in a runlevel

Repo : base

Matched from:

Filename : /usr/sbin/ntsysv

ntsysv-1.3.49.3-2.el6_4.1.x86_64 : A tool to set the stop/start of

system services in a runlevel

Repo : installed

Matched from:

Filename : /usr/sbin/ntsysv

另一种方法

[root@lb ~]# rpm -qf

/usr/sbin/ntsysv

ntsysv-1.3.49.3-2.el6_4.1.x86_64

[root@lb ~]# rpm -qi ntsysv

Name :

ntsysv Relocations: (not relocatable)

Version :

1.3.49.3 Vendor: CentOS

Release :

2.el6_4.1 Build Date: Mon 23 Sep 2013 05:07:36 PM CST

Install Date: Mon 23 Jun 2014 02:35:11 PM

CST Build Host: c6b9.bsys.dev.centos.org

Group : System

Environment/Base Source RPM: chkconfig-1.3.49.3-2.el6_4.1.src.rpm

Size :

26697 License: GPLv2

Signature : RSA/SHA1, Mon 23

Sep 2013 11:53:48 PM CST, Key ID 0946fca2c105b9de

Packager :

CentOS BuildSystem <

href="http://bugs.centos.org">http://bugs.centos.org>

Summary : A tool to set the stop/start of system services in a

runlevel

Description :

Ntsysv provides a simple interface for setting which system

services

are started or stopped in various runlevels (instead of

directly

manipulating the numerous symbolic links in /etc/rc.d). Unless

you

specify a runlevel or runlevels on the command line (see the

man

page), ntsysv configures the current runlevel (5 if you're using

X).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值