![]() Automatic restart when the PostgreSQL version changes.Using the PostgreSQL database service shipped with the Linux package.There are lot of configuration options available for apt-file which i leave to you to explore. ![]() This is really cool as we wont be wasting time to resolve these dependency issues. If multiple references to the same file exists (example ssl.h ) then apt-file reports all the packages which provides the queried file. The issue can be resolved by just installing the missing package. Libnl-3-dev: clearly shows to that the missing file is part of the libnl-3-dev package. Since we have apt-file installed let us use it to try to solve the above apt-file search netlink/genl/genl.h Below is the error which i got while trying to compile a package ( hostap) from source:įatal error: netlink/genl/genl.h: No such file or directory Let us test it by trying to compile a package from source. Ignoring source without Contents above command has updated its local cache which is used for searching the missing files. If you want to switch back to the system-wide cache directory, Pls note that it make sometime to update the cache as it depends upon your network apt-file updateĪpt-file is now using the user’s cache directory. Just run apt-file update command which will update the system wide cache. The package has been installed and before proceeding we need to update the cache which the package looks into when we query it. Normal user to use a cache in the user’s home directory. ![]() You may want to run ‘apt-file update’Īs root to update the cache. Processing triggers for man-db (2.7.5-1) … ![]() Preparing to unpack …/apt-file_2.5.5ubuntu1_all.deb … (Reading database … 372978 files and directories currently installed.) Selecting previously unselected package apt-file. The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 199 not upgraded.Īfter this operation, 92.2 kB of additional disk space will be used. So let us go ahead and install the package sudo apt-get install apt-file Let us do a quick search using apt command to check whether the package is available for us to go ahead and apt-cache search apt-fileĪpt-file – search for files within Debian packages (command-line interface)Ĭabal-debian – Create a debianization for a cabal packageĪs you can see the package is available for us to install. The demo machine is actually running ubuntu mate which is based on ubuntu 16.04 LTS.įirst of all let us update the local sudo apt-get update If you are using ubuntu distro or any of it clones like mint or ubuntu mate you can simply install it by using the apt command as we normally install packages. This is a simple and intuitive way to check the missing files which belongs to a certain package and then go ahead and install them so that we can continue to work on our task.Īpt-file is the tool which helps us to solve these kinds of issue. Now there is a solution to these issues at least for ubuntu clones. Many times we revert to different versions just to solve the compilation issue rather than work on the actual task which we want to do. Lots of time is spent googling to find out the solution blindly. How often have we faced issues while trying to compile a package from source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |