Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Using Ubuntu: What Package Did This File Come From? Používanie Ubuntu: Čo balík Už tento súbor pochádza?

How many times have you noticed a file sitting in a directory and wondered… where did this file come from?  Or you are trying to tell a friend how to use a utility but he doesn't have it installed, and you can't remember what package you installed to get it. Koľkokrát ste si všimli, súbor posedenie v adresári a napadlo ... kde sa tento súbor pochádza? Alebo sa snažíte povedať priateľovi, ako používať nástroje, ale nemá to nainštalované, a nemôžete si spomenúť aký balík ste inštalovali ho získať.

Sure, you can head over to google, but don't you always wonder how those people know? Iste, môžete si hlavu na google, ale nie vždy divím, jak ty lidi vedia? It's simple, install the dlocate utility, which is a faster alternative to dpkg for this type of query. Je to jednoduché, nainštalujte dlocate utilita, ktorá je rýchlejšia alternatívou k dpkg pre tento typ dotazu.

sudo apt-get install dlocate sudo apt-get install dlocate

You can use the command with the syntax 'dlocate <filename>', which will give you this output: Môžete použiť príkaz sa syntaxou 'dlocate <súbor>', ktorý vám poskytne tento výstup:

$ dlocate flac $ Dlocate flac

libxine1: /usr/lib/xine/plugins/1.1.4/xineplug_flac.so libxine1: / usr/lib/xine/plugins/1.1.4/xineplug_flac.so
libtunepimp5: /usr/lib/tunepimp/plugins/flac.tpp libtunepimp5: / usr / lib / tunepimp / plugins / flac.tpp
gstreamer0.10-plugins-good: /usr/lib/gstreamer-0.10/libgstflac.so gstreamer0.10-plugins-good: / usr/lib/gstreamer-0.10/libgstflac.so
flac: /. flac: /.
flac: /usr flac: / usr
flac: /usr/bin flac: / usr / bin
flac: /usr/bin/flac flac: / usr / bin / flac
—– trimmed —— - Zdobené --

That's a lot of output! You can see that there are a lot of filenames that partially match. To je veľa výkonu! Môžete vidieť, že existuje veľa súborov, ktoré čiastočne zodpovedajú. Better to pass the full path to the filename. Lepšie je prejsť celú cestu k súboru. In this case, you can use 'which flac' to determine which flac command you are using, and then pass the full path to dlocate. V tomto prípade môžete použiť ', ktorý flac' určiť, ktorý flac príkaz, ktorý používate, a potom prejsť celú cestu až dlocate.

$ which flac $ Ktorá flac

/usr/bin/flac / Usr / bin / flac

$ dlocate /usr/bin/flac Dlocate $ / usr / bin / flac

flac: /usr/bin/flac flac: / usr / bin / flac

Now we know that the flac command is found in the package called “flac”. Teraz vieme, že flac príkaz je nájsť v balíčku s názvom "flac". (Yes, this example was very simple) You could even get more creative (use the character next to the 1 key, not a single quote) (Áno, tento príklad je veľmi jednoduchý) Dalo by sa dokonca dostať viac kreatívne (použite znak vedľa 1 kľúč, ani jeden citát)

$ dlocate `which flac` $ Dlocate ", ktoré flac`

flac: /usr/bin/flac flac: / usr / bin / flac

If you don't feel like installing another utility, you can use the 'dpkg -S <filename>'  command that is built in, but the output isn't nearly as fast or organized. Ak nemáte chuť inštalovať ďalšie nástroje, môžete použiť 'dpkg-S <súbor>' príkaz, ktorý je postavený v roku, ale výstup nie je zďaleka tak rýchly a organizovaný. Just make sure you pass the full path of the file to either utility and you should get good results. Len nezabudnite prejsť celú cestu k súboru na jeden nástroj, a mali by ste dostať dobré výsledky.

This article was originally written on 06/19/07 Tagged with: Tento článok bol pôvodne napísaný na 06/19/07 Tagged s: Ubuntu Ubuntu

Daily Email Updates Denný Svářeč

You can get our how-to articles in your inbox each day for free. Môžete si naše jak-na články vo vašej schránky každý deň zadarmo. Just enter your name and email below: Stačí zadať svoje meno a e-mail nižšie:


Name: Meno:
Email: E-mail:

Our Friends Naši priatelia
Getting Started Začíname


About How-To Geek O tom, ako-To Geek
What Is That Process? Čo je to za proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe Dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe WMPNSCFG.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.