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? Uporaba Ubuntu: Kateri paket je to File Come From?

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. Kolikokrat ste opazili datoteko sedi v imeniku in se spraševal ... kje izvirajo iz te datoteke? Ali poskušate povedati prijatelju, kako uporabljati pripomoček, vendar nima nameščenega, in se ne spomnite kaj ste namestili paket zadobiti to.

Sure, you can head over to google, but don't you always wonder how those people know? Seveda, lahko nad glavo na google, vendar ne vedno se sprašujem, kako ti ljudje poznajo? It's simple, install the dlocate utility, which is a faster alternative to dpkg for this type of query. Je preprost, namestite dlocate korist, ki je hitrejši alternativa dpkg za to vrsto poizvedbe.

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

You can use the command with the syntax 'dlocate <filename>', which will give you this output: Uporabite lahko ukaz s sintakso "dlocate <imedatoteke>", ki vam bo to output:

$ 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 —— - Obrezani --

That's a lot of output! You can see that there are a lot of filenames that partially match. To je veliko izhodno! Vidite lahko, da obstaja veliko datotek, ki delno ujemajo. Better to pass the full path to the filename. Bolje, da prenese celotno pot do datoteke. 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 tem primeru, lahko uporabite ", ki ohlapen", ugotoviti, katere ohlapen ukaz, ki ga uporabljate, in nato opraviti celotno pot do dlocate.

$ which flac $ Ki 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”. Zdaj vemo, da je ohlapen ukaz najdemo v paket, imenovan "ohlapen". (Yes, this example was very simple) You could even get more creative (use the character next to the 1 key, not a single quote) (Ja, ta primer je zelo preprost) Lahko bi celo dobili več ustvarjalne (uporabite znak poleg 1 ključ, ne eno ponudbo)

$ dlocate `which flac` $ Dlocate ", ki ohlapen"

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. Če se ne počutite kot napeljati drugo korist, lahko uporabite "dpkg-S <imedatoteke>" ukaz, ki je zgrajena v, vendar pa proizvodnja niti približno ni tako hitro in organizirano. Just make sure you pass the full path of the file to either utility and you should get good results. Samo poskrbite, da boste prenese celotno pot do datoteke ali korist, in vi bi dobili dobre rezultate.

This article was originally written on 06/19/07 Tagged with: Ta članek je bil prvotno napisan na 06/19/07 Tagged with: Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to 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.