Install and use apt file command in Linux system

Time:2021-2-24

Just now I installed the spyner module, using easy_ When installing spyner, all kinds of files are missing. I found the apt file command by accident. From then on, I don’t have to worry about the lack of a file in the compiler.
1. First install the apt file command

Copy code

The code is as follows:

apt-get install apt-file

2. Then update the apt file cache

Copy code

The code is as follows:

apt-file update

3. Now you can use apt file to search for missing files, such as missing files during compilation

Copy code

The code is as follows:

[email protected]:~# apt-file search XTest.h

libbcprov-java-doc: /usr/share/doc/libbcprov-java-doc/api/org/bouncycastle/jce/provider/test/PKIXTest.html
libreoffice-dev-doc: /usr/share/doc/libreoffice-dev/docs/common/ref/com/sun/star/test/XTest.html
libsvgsalamander-java-doc: /usr/share/doc/libsvgsalamander-java-doc/api/com/kitfox/svg/xml/cpx/CPXTest.html
libsvgsalamander-java-doc: /usr/share/doc/libsvgsalamander-java-doc/api/com/kitfox/svg/xml/cpx/class-use/CPXTest.html
libxtst-dev: /usr/include/X11/extensions/XTest.h
4. Obviously, the libxtst dev package is exactly what we need to install

Copy code

The code is as follows:

apt-get install libxtst-dev
bash/shell CodeCopy content to clipboard
  1. apt-get install libxtst-dev  

Recommended Today

Deeply analyze the principle and practice of RSA key

1、 Preface After experiencing many dark moments in life, when you read this article, you will regret and even be angry: why didn’t you write this article earlier?! Your darkest moments include: 1. Your project needs to be connected with the bank, and the other party needs you to provide an encryption certificate. You have […]