bob*_*nte -2 security linux ruby
我希望删除非关键包以限制潜在安全漏洞的暴露。
我从不使用 Ruby。
删除 Ruby 会增加安全性还是会破坏系统的其他部分?
如果您的包管理器一开始就安装了 Ruby,那么您系统上的某些东西就需要它。
找出需要什么的最简单方法是测试删除包的尝试。例如:
# yum remove ruby
...
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
ruby x86_64 1.8.7.352-12.el6_4 @updates 1.8 M
Removing for dependencies:
facter x86_64 1:1.7.3-1.el6 @puppetlabs-products 235 k
hiera noarch 1.2.1-1.el6 @puppetlabs-products 46 k
puppet noarch 3.3.0-1.el6 @puppetlabs-products 3.5 M
ruby-irb x86_64 1.8.7.352-12.el6_4 @updates 1.0 M
ruby-rdoc x86_64 1.8.7.352-12.el6_4 @updates 1.3 M
ruby-rgen noarch 0.6.5-1.el6 @puppetlabs-deps 315 k
rubygem-json x86_64 1.5.5-1.el6 @puppetlabs-deps 989 k
rubygems noarch 1.3.7-1.el6 @base 711 k
Transaction Summary
================================================================================
Remove 9 Package(s)
Installed size: 9.9 M
Is this ok [y/N]: n
Exiting on user Command
Run Code Online (Sandbox Code Playgroud)
所以在我的系统上,我看到 puppet 需要它。由于我实际上需要 puppet,因此我不会删除 ruby。
同样在基于 Debian 的系统上:
# apt-get remove ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libshadow-ruby1.8 irb1.8 libaugeas0 rdoc libruby ruby1.8 rdoc1.8
libaugeas-ruby1.8 puppet-common libruby1.8 libopenssl-ruby1.8
libreadline-ruby1.8 libreadline5 libopenssl-ruby augeas-lenses
libxmlrpc-ruby
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
facter puppet ruby
0 upgraded, 0 newly installed, 3 to remove and 48 not upgraded.
After this operation, 983kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3053 次 |
| 最近记录: |