Package Detection with apt-file
Ola guys! I started to learn some Spanish and this is the reason I am greeting in Spanish. I hope you like it, because I am not here to share academic papers with you, right? I am here to make learn some Linux fun. The reason why you should stick with Unixmen is that you will get tons of info while I entertain you guys with my information. Entendido? Ok, ok… it is time for some Ubuntu knowledge.
Have you ever thought what package does your command run when you type it in the terminal? What is behind the ‘software-center’ command?
I did not know about that, until I learned about apt-file command. What is apt-file command? The apt-file is a command that will help you guys to figure out which package contains a certain command or any other file. As you read this article, ask yourself questions. For example, does this command comes pre-installed or not? If you want to learn a lot, you have to ask yourself a lot of questions and try to stay focused on the game.
We are playing with Ubuntu now, so open a new terminal and try to run the ‘apt-file‘ command like shown in Figure 2.
As you can see from Figure 2, the ‘apt-file‘ command is currently not installed. So, guys, what are you waiting for? For the sun to rise? Run that ‘apt-get‘ command and install ‘apt-file’. Hmm, ‘apt-get install apt-file’! Odd.
After the command is installed, you will be presented with the message shown below:
The system-wide cache is empty. You may want to run 'apt-file update' as root to update the cache. You can also run 'apt-file update' as normal user to use a cache in the user's home directory.
So run ‘sudo apt-file update‘ in your terminal and wait until the update is done. After you run update a strange screen will come up but do not worry because the cache is updating. And if something breaks or some errors come up, then what? If you think like this you will never learn, pray for more errors because you will learn new things. But this update does not give any errors guys, so relax and wait for it.
I am going to drink some apple juice now… oh, update is done. Ok, how do we use this command?
Simply use ‘apt-file search‘ command followed by the file or program you want to search for. Awesome! It works.
After I ran this I found that the list presented to me was quite long, but it’s ok. So let me know in the comments about your own experience with the ‘apt-file’ command.
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Fedora 21 Scheduled For Release In October : For Fedora users, just keep calm and use Fedora 20 for now. Fedora Developers has announced that F...1 comment |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install LAMP Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 13.10 : Updated January 12, 2014 LAMP is a combination of operating system and open-source software stack. ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- DNS Server Installation Step by Step Using CentOS 6.5/6.4/6.3 : DNS, Domain Name System, translates hostnames or URLs into IP addresses. For example if we type www....0 comments |
- Fedora 21 Scheduled For Release In October
- Install Uget Download Manager In Ubuntu, Fedora, Debian
- Download Elementary OS ‘Luna’ Official Wallpapers
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful
- Puppet agent Install Using Script
- Install Corosync and Pacemaker On CentOS 6.5
- Install Fail2Ban On Ubuntu Server 13.04/13.10
- How To Install Google Chrome in Fedora 20, 19, 18
- How to surf using Tor Browser Bundle
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .