Headline News
Secure Blackphone starts shipping (June 30, 2014 10:03 am)
Linux Mint KDE reviewed (June 24, 2014 2:06 pm)
Linux Mint 17 “Qiana” KDE released! (June 23, 2014 10:24 am)
7 Improvements The Linux Desktop Needs (June 21, 2014 12:48 am)
arch-linux

How to find required software effectively on Arch Linux

Sometimes you need to intsall a desired software but could not find package name for it, sometimes the application you want to compile has some missing library or shared object files and you could not find those required files or libraries. This tutorial is aimed at finding and installing right software for your need in Arch Linux.

pkgfile

In Arch Linux most of the software are available through AUR and official repositories. To find the required software and files there are several tools available. pkgfile is one such tool. This tool tells you which package owns which file. To install pkgfile in Arch Linux run following command:

$ sudo pacman -S pkgfile

After installing pkgfile on your Arch Linux system you need to download and update the file database using this command:

$ sudo pkgfile –update

Usage of this tool is simple, suppose you want to find a package which includes makepkg command. You simply need to run:

$ pkgfile makepkg
core/pacman

Also you can list the files installed by giving package name ‘file':

$ pkgfile –list core/file

Command not found hook

Normally when you enter any command which is not installed on your computer it shows an error message.

$ abiword
sh: 1: abiword: not found

pkgfile package ships command not found hook which searches the official repository when you enter unrecognized command. To enable command not found hook on bash add this line to your ~/.bashrc:

source /usr/share/doc/pkgfile/command-not-found.bash

If you are using the zsh then add line given below to ~/.zshrc

source /usr/share/doc/pkgfile/command-not-found.zsh

After that when you run unknown command the output will be:

$ abiword
abiword may be found in the following packages:
extra/abiword 2.8.6-7 usr/bin/abiword

Once you get the required package name it is easy to install it using pacman or packer.

We are looking for aspiring bloggers and journalists for The Mukt. If you are interested, apply now!

Enjoy Arch!

I am student of Information Technology from India. Currently I am doing KDE development under Season Of KDE program. I am proud Linux user and FOSS enthusiast.

36 Comments

  1. Very useful, thanks! Hope we get an Arch review soon!

  2. Nice info for Arch.

  3. Pingback: Hay Day Cheats

  4. Pingback: Trackback

  5. Pingback: Trackback

  6. Pingback: Trackback

  7. Pingback: ceavbjhnmkjnhbgefsdf

  8. Pingback: csmrynkmgfgktjglsrtmsgxn

  9. Pingback: csngrdngthnfgdsfgnsfsd

  10. Pingback: cnxdhffnefmnnrarcbfaxxrnf

  11. Pingback: Love Letters For Her

  12. Pingback: Trackback

  13. Pingback: Arch installation - missing tools

  14. Pingback: plumber Sofia

  15. Pingback: Monster High Ghoulie Bedding Comforter B00BE3IUIG

  16. Pingback: AKDY Aluminum Shower AzV5333d System B002ZK8U28

  17. Pingback: Animal Safari Decorative Pillow Cheetah B00AAGGE4K

  18. Pingback: modnaja odezhda

  19. Pingback: ElitDress

  20. Pingback: ElitePeoples.RU

  21. Pingback: ElitePeoples.RU

  22. Pingback: lincoln electric k1297 225 welder b000gborwk 7746

  23. Pingback: fi shock impedance deterrent energizer esp2m fs b00aza1zwc 7764

  24. Pingback: buffet enhancements double stainless dispenser b002muao0m 6186

  25. Pingback: wise foods deluxe survival 01 602 b005qhpuxe 401

  26. Pingback: davis 6316 wireless weather envoytm b00106udtq 6460

  27. Pingback: c2g cables 40465 audio cable b0019mci94 7762

  28. Pingback: where to buy serola sacroiliac belt

  29. Pingback: Пуховик Marina Yachting

  30. Pingback: Жилет утепленный Napapijri

  31. Pingback: Шорты Tom Tailor

  32. Pingback: Топ Mango

  33. Pingback: gde v voronezhe kupit bra rika boy 2582

  34. Pingback: stiga rasenmaher

  35. Pingback: Trackback

  36. Pingback: Trackback

Leave A Comment