ubuntu中使用sudo apt-get install 安装之后的软件,怎么看安装在哪里

时间:2021-05-15 02:41:22

如题:

有两种方式:

1)dpkg -L softwarename; 

for example: dpkg -L mricron

/.
/usr
/usr/share
/usr/share/applications
/usr/share/applications/dcm2niigui.desktop
/usr/share/applications/mricron.desktop
/usr/share/applications/mricron-npm.desktop
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/dcm2nii.1.gz
/usr/share/man/man1/mricron.1.gz
/usr/share/pixmaps
/usr/share/pixmaps/mricron.xpm
/usr/share/menu
/usr/share/menu/mricron
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/mricron
/usr/share/doc
/usr/share/doc/mricron
/usr/share/doc/mricron/copyright
/usr/share/doc/mricron/changelog.Debian.gz
/usr/bin
/usr/bin/mricron-npm
/usr/bin/dcm2niigui
/usr/bin/mricron
/usr/bin/dcm2nii
/usr/lib
/usr/lib/mricron
/usr/lib/mricron/mricron
/usr/share/man/man1/dcm2niigui.1.gz
/usr/share/man/man1/mricron-npm.1.gz

第二种:首先安装 apt-file,命令:sudo apt-get install apt-file,然后使用命令:apt-file list softwarename, 

for example: apt-file list mricron

mricron: /usr/bin/dcm2nii
mricron: /usr/bin/dcm2niigui
mricron: /usr/bin/mricron
mricron: /usr/bin/mricron-npm
mricron: /usr/lib/mricron/mricron
mricron: /usr/share/applications/dcm2niigui.desktop
mricron: /usr/share/applications/mricron-npm.desktop
mricron: /usr/share/applications/mricron.desktop
mricron: /usr/share/doc/mricron/changelog.Debian.gz
mricron: /usr/share/doc/mricron/copyright
mricron: /usr/share/lintian/overrides/mricron
mricron: /usr/share/man/man1/dcm2nii.1.gz
mricron: /usr/share/man/man1/dcm2niigui.1.gz
mricron: /usr/share/man/man1/mricron-npm.1.gz
mricron: /usr/share/man/man1/mricron.1.gz
mricron: /usr/share/menu/mricron
mricron: /usr/share/pixmaps/mricron.xpm
mricron-data: /usr/share/doc/mricron-data/changelog.Debian.gz
mricron-data: /usr/share/doc/mricron-data/copyright
mricron-data: /usr/share/mricron/lut/16.lut
mricron-data: /usr/share/mricron/lut/1hot.lut
mricron-data: /usr/share/mricron/lut/2winter.lut
mricron-data: /usr/share/mricron/lut/3warm.lut
mricron-data: /usr/share/mricron/lut/4cool.lut
mricron-data: /usr/share/mricron/lut/5redyell.lut
mricron-data: /usr/share/mricron/lut/6bluegrn.lut
mricron-data: /usr/share/mricron/lut/GE_color.lut
mricron-data: /usr/share/mricron/lut/HOTIRON.lut
mricron-data: /usr/share/mricron/lut/NIH.lut
mricron-data: /usr/share/mricron/lut/NIH_fire.lut
mricron-data: /usr/share/mricron/lut/NIH_ice.lut
mricron-data: /usr/share/mricron/lut/Rainramp.lut
mricron-data: /usr/share/mricron/lut/actc.lut
mricron-data: /usr/share/mricron/lut/blackbdy.lut
mricron-data: /usr/share/mricron/lut/blue_otto.lut
mricron-data: /usr/share/mricron/lut/bluegray.lut
mricron-data: /usr/share/mricron/lut/bone.lut
mricron-data: /usr/share/mricron/lut/cardiac.lut
mricron-data: /usr/share/mricron/lut/cortex.lut
mricron-data: /usr/share/mricron/lut/flow.lut
mricron-data: /usr/share/mricron/lut/french.lut
mricron-data: /usr/share/mricron/lut/gold.lut
mricron-data: /usr/share/mricron/lut/gooch.lut
mricron-data: /usr/share/mricron/lut/greengray.lut
mricron-data: /usr/share/mricron/lut/overlay_classic.lut
mricron-data: /usr/share/mricron/lut/pink.lut
mricron-data: /usr/share/mricron/lut/pink_old.lut
mricron-data: /usr/share/mricron/lut/red_otto.lut
mricron-data: /usr/share/mricron/lut/spectrum.lut
mricron-data: /usr/share/mricron/lut/surface.lut
mricron-data: /usr/share/mricron/lut/x_hot.lut
mricron-data: /usr/share/mricron/lut/x_rain.lut
mricron-data: /usr/share/mricron/templates/aal.nii.gz
mricron-data: /usr/share/mricron/templates/aal.nii.lut
mricron-data: /usr/share/mricron/templates/aal.nii.txt
mricron-data: /usr/share/mricron/templates/brodmann.nii.gz
mricron-data: /usr/share/mricron/templates/brodmann.nii.lut
mricron-data: /usr/share/mricron/templates/ch2bet.nii.gz
mricron-doc: /usr/share/doc/mricron-doc/changelog.Debian.gz
mricron-doc: /usr/share/doc/mricron-doc/copyright
mricron-doc: /usr/share/doc/mricron-doc/examples/attention.nii.gz
mricron-doc: /usr/share/doc/mricron-doc/examples/clipnearr.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/cut2.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/cutr.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/1.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/10.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/11.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/12.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/13.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/14.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/15.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/16.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/17.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/18.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/19.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/2.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/20.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/21.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/22.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/23.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/24.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/3.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/4.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/5.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/6.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/7.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/8.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/9.voi
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/binomial.val
mricron-doc: /usr/share/doc/mricron-doc/examples/dataset/continuous.val
mricron-doc: /usr/share/doc/mricron-doc/examples/fmri2r.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/fmri3r.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/fmrir.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/lesionm.ini
mricron-doc: /usr/share/doc/mricron-doc/examples/saccades.nii.gz
mricron-doc: /usr/share/doc/mricron-doc/html/bat.html
mricron-doc: /usr/share/doc/mricron-doc/html/dcm2nii.html
mricron-doc: /usr/share/doc/mricron-doc/html/images/48x36.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/autocrop.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/dcm2niigui.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/design.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/draw/3dfill.png
mricron-doc: /usr/share/doc/mricron-doc/html/images/draw/circle.png
mricron-doc: /usr/share/doc/mricron-doc/html/images/draw/closedpen.png
mricron-doc: /usr/share/doc/mricron-doc/html/images/draw/fill.png
mricron-doc: /usr/share/doc/mricron-doc/html/images/draw/pen.png
mricron-doc: /usr/share/doc/mricron-doc/html/images/examplefmri.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/examplefmri_multi.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/icon.png
mricron-doc: /usr/share/doc/mricron-doc/html/images/layers.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/lazarus.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/lesionsum.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/lieber.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/main.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/meld.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/nifti.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/npm.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/patient9.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/prefs.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/renderAAL.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/results.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/space.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/splash.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/images/threshold.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/transparency.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/val.gif
mricron-doc: /usr/share/doc/mricron-doc/html/images/zhistogram.gif
mricron-doc: /usr/share/doc/mricron-doc/html/index.html
mricron-doc: /usr/share/doc/mricron-doc/html/install.html
mricron-doc: /usr/share/doc/mricron-doc/html/main.html
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/eventtime.png
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/icon.png
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/meld.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/periset.png
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/peristimulusplot.png
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/perivol.png
mricron-doc: /usr/share/doc/mricron-doc/html/peri/images/timeline.png
mricron-doc: /usr/share/doc/mricron-doc/html/peri/index.html
mricron-doc: /usr/share/doc/mricron-doc/html/source.html
mricron-doc: /usr/share/doc/mricron-doc/html/stats.html
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/design.gif
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/icon.png
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/lesionsum.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/lieber.gif
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/meld.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/npm.gif
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/patient9.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/results.jpg
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/threshold.gif
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/val.gif
mricron-doc: /usr/share/doc/mricron-doc/html/tutorial/images/zhistogram.gif


可以根据自己的需求使用这两种方式