在 CentOS 7 上,我安装了从源代码编译的foobar版本 2。
我怎样才能让 yum 知道该安装,以便它不会安装foobar版本 1 以进行依赖?
$ git clone https://example.com/foobar.git
[...]
$ cd foobar
$ make && sudo make install
[...]
$ foobar --version
foobar v2
Run Code Online (Sandbox Code Playgroud)
$ sudo yum install baz
[...]
---> Package baz.x86_64 0:3.14.15-9 will be installed
--> Processing Dependency: foobar >= 1 for package: baz-3.14.15-9.x86_64
[...]
Dependencies Resolved
==============================================================
Package Arch Version Repository Size
==============================================================
Installing:
baz x86_64 3.14.15-9 example 1.1 M
Installing for …Run Code Online (Sandbox Code Playgroud)