How do I get a list of installed files from a package?












376















I want to know where I can find my installed application when I installed it on Ubuntu using package manager.



I installed RabbitMQ and ran locate rabbitmq which gave me following result:



/home/anupamg/.m2/repository/com/rabbitmq
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/_maven.repositories
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.sha1
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.sha1
/home/anupamg/Downloads/rabbitmq-server-generic-unix-2.4.0.tar.gz









share|improve this question















migrated from stackoverflow.com Mar 29 '11 at 10:52


This question came from our site for professional and enthusiast programmers.



















  • What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific.

    – Ragnar123
    Mar 29 '11 at 9:59











  • Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

    – das_weezul
    Mar 29 '11 at 10:02











  • ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its run.sh file

    – Anupam Gupta
    Mar 29 '11 at 10:03











  • @ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed

    – Anupam Gupta
    Mar 29 '11 at 10:06






  • 1





    One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected.

    – gazhay
    Oct 17 '14 at 14:17


















376















I want to know where I can find my installed application when I installed it on Ubuntu using package manager.



I installed RabbitMQ and ran locate rabbitmq which gave me following result:



/home/anupamg/.m2/repository/com/rabbitmq
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/_maven.repositories
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.sha1
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.sha1
/home/anupamg/Downloads/rabbitmq-server-generic-unix-2.4.0.tar.gz









share|improve this question















migrated from stackoverflow.com Mar 29 '11 at 10:52


This question came from our site for professional and enthusiast programmers.



















  • What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific.

    – Ragnar123
    Mar 29 '11 at 9:59











  • Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

    – das_weezul
    Mar 29 '11 at 10:02











  • ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its run.sh file

    – Anupam Gupta
    Mar 29 '11 at 10:03











  • @ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed

    – Anupam Gupta
    Mar 29 '11 at 10:06






  • 1





    One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected.

    – gazhay
    Oct 17 '14 at 14:17
















376












376








376


127






I want to know where I can find my installed application when I installed it on Ubuntu using package manager.



I installed RabbitMQ and ran locate rabbitmq which gave me following result:



/home/anupamg/.m2/repository/com/rabbitmq
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/_maven.repositories
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.sha1
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.sha1
/home/anupamg/Downloads/rabbitmq-server-generic-unix-2.4.0.tar.gz









share|improve this question
















I want to know where I can find my installed application when I installed it on Ubuntu using package manager.



I installed RabbitMQ and ran locate rabbitmq which gave me following result:



/home/anupamg/.m2/repository/com/rabbitmq
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/_maven.repositories
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.jar.sha1
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.lastUpdated
/home/anupamg/.m2/repository/com/rabbitmq/amqp-client/1.7.2/amqp-client-1.7.2.pom.sha1
/home/anupamg/Downloads/rabbitmq-server-generic-unix-2.4.0.tar.gz






package-management dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 '13 at 11:32









Flyk

1,38931624




1,38931624










asked Mar 29 '11 at 9:57









Anupam GuptaAnupam Gupta

1,993346




1,993346




migrated from stackoverflow.com Mar 29 '11 at 10:52


This question came from our site for professional and enthusiast programmers.









migrated from stackoverflow.com Mar 29 '11 at 10:52


This question came from our site for professional and enthusiast programmers.















  • What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific.

    – Ragnar123
    Mar 29 '11 at 9:59











  • Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

    – das_weezul
    Mar 29 '11 at 10:02











  • ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its run.sh file

    – Anupam Gupta
    Mar 29 '11 at 10:03











  • @ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed

    – Anupam Gupta
    Mar 29 '11 at 10:06






  • 1





    One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected.

    – gazhay
    Oct 17 '14 at 14:17





















  • What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific.

    – Ragnar123
    Mar 29 '11 at 9:59











  • Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

    – das_weezul
    Mar 29 '11 at 10:02











  • ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its run.sh file

    – Anupam Gupta
    Mar 29 '11 at 10:03











  • @ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed

    – Anupam Gupta
    Mar 29 '11 at 10:06






  • 1





    One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected.

    – gazhay
    Oct 17 '14 at 14:17



















What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific.

– Ragnar123
Mar 29 '11 at 9:59





What application? Some are accesible through commandline, others get an pretty icon in the application menu. Be more specific.

– Ragnar123
Mar 29 '11 at 9:59













Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

– das_weezul
Mar 29 '11 at 10:02





Do you want to know where the executables and config files reside or do you want to execute it and don't know how?

– das_weezul
Mar 29 '11 at 10:02













ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its run.sh file

– Anupam Gupta
Mar 29 '11 at 10:03





ok!!! i actually want to know that as in windows if i install application i can see it in program files similarly in ubuntu where to locate the installed application...I just installed RabbitMq and want to know where it is residing i need to configur its run.sh file

– Anupam Gupta
Mar 29 '11 at 10:03













@ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed

– Anupam Gupta
Mar 29 '11 at 10:06





@ das_weezul :- yes I want to know all things which are done to my box when i click install from synaptic package manager ...i am a newbie on ubuntu... so any links are welcomed

– Anupam Gupta
Mar 29 '11 at 10:06




1




1





One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected.

– gazhay
Oct 17 '14 at 14:17







One of the answers suggests the following dpkg-query -c <package_name.deb> You cannot do that to a deb file. I suspect the poster meant to use dpkg-deb with the same params dpkg-deb -c <filename.deb> Which lists the files as expected.

– gazhay
Oct 17 '14 at 14:17












6 Answers
6






active

oldest

votes


















554














To see all the files the package installed onto your system, do this:



dpkg-query -L <package_name>


To see the files a .deb file will install



dpkg-deb -c <package_name.deb>


To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:



sudo apt-get install apt-file
sudo apt-file update


then



apt-file list <package_name>


See this question for more






share|improve this answer





















  • 2





    As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

    – Camille Goudeseune
    Apr 30 '15 at 20:54






  • 4





    Updating apt-file is pain.

    – sjsam
    May 30 '16 at 7:23











  • Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

    – Steve
    Sep 15 '16 at 23:13



















23














@drysdam dpkg -L <package_name> might be the best for your immediate problem, but you might like to read the Filesystem Hierarchy Standard, which describes where different types of files live in the filesystem.



It is not definitive; it is just a descriptive account of the way things "mostly" are.



More specific to Ubuntu is the Ubuntu Server Guide, which will describe everything in enough detail. (So many of the other guides gloss over too many of the details, but this should be better.)






share|improve this answer

































    13














    if you just want a single installed package, you can find the package name



    $ apt-cache search rabbitmq
    ...
    librabbitmq-dev
    ...


    then use dpkg --listfiles



    $ dpkg --listfiles librabbitmq-dev
    /usr/lib/x86-64/librabbit...
    . . .





    share|improve this answer
























    • might depend on the version but i had to use dpkg -L <package>

      – JimB
      Jun 30 '17 at 18:28











    • dpkg -L works only on installed packages.

      – kenorb
      Jan 14 at 20:44



















    11














    The answer given by @Gilles is very useful (actually, the answer was improved over time).



    Furthermore, I have a tip for the ones that don't want to install any auxiliary package (like the apt-file):




    • Go to http://packages.ubuntu.com/;

    • Go to the Search package directories session;

    • Insert your package name in the Keyword field and select Only show exact matches;

    • Select your distribution and click in the Search button.

    • Select the desirable package in the next screen;

    • In the end of page, click in the list of files link next to your architecture name;

    • The next page will show the list of files of your package.


    As an example: http://packages.ubuntu.com/trusty/amd64/multipath-tools/filelist






    share|improve this answer





















    • 1





      curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

      – Nico57
      Aug 28 '18 at 23:57



















    0














    Here's one way to do it for packages you don't have installed yet. Just change "autoconf" below for the package you are trying to get the list of files for:



    mkdir tmp
    cd tmp
    apt-get download autoconf
    ar x *.deb
    tar tf data.*
    cd ..
    rm -r tmp





    share|improve this answer































      -1














      Use the synaptic-package-manager:



      enter image description here



      Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it. The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'.






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f32507%2fhow-do-i-get-a-list-of-installed-files-from-a-package%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        6 Answers
        6






        active

        oldest

        votes








        6 Answers
        6






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        554














        To see all the files the package installed onto your system, do this:



        dpkg-query -L <package_name>


        To see the files a .deb file will install



        dpkg-deb -c <package_name.deb>


        To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:



        sudo apt-get install apt-file
        sudo apt-file update


        then



        apt-file list <package_name>


        See this question for more






        share|improve this answer





















        • 2





          As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

          – Camille Goudeseune
          Apr 30 '15 at 20:54






        • 4





          Updating apt-file is pain.

          – sjsam
          May 30 '16 at 7:23











        • Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

          – Steve
          Sep 15 '16 at 23:13
















        554














        To see all the files the package installed onto your system, do this:



        dpkg-query -L <package_name>


        To see the files a .deb file will install



        dpkg-deb -c <package_name.deb>


        To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:



        sudo apt-get install apt-file
        sudo apt-file update


        then



        apt-file list <package_name>


        See this question for more






        share|improve this answer





















        • 2





          As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

          – Camille Goudeseune
          Apr 30 '15 at 20:54






        • 4





          Updating apt-file is pain.

          – sjsam
          May 30 '16 at 7:23











        • Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

          – Steve
          Sep 15 '16 at 23:13














        554












        554








        554







        To see all the files the package installed onto your system, do this:



        dpkg-query -L <package_name>


        To see the files a .deb file will install



        dpkg-deb -c <package_name.deb>


        To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:



        sudo apt-get install apt-file
        sudo apt-file update


        then



        apt-file list <package_name>


        See this question for more






        share|improve this answer















        To see all the files the package installed onto your system, do this:



        dpkg-query -L <package_name>


        To see the files a .deb file will install



        dpkg-deb -c <package_name.deb>


        To see the files contained in a package NOT installed, do this once (if you haven't installed apt-file already:



        sudo apt-get install apt-file
        sudo apt-file update


        then



        apt-file list <package_name>


        See this question for more







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 20 '17 at 10:04









        Community

        1




        1










        answered Mar 29 '11 at 10:06







        drysdam















        • 2





          As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

          – Camille Goudeseune
          Apr 30 '15 at 20:54






        • 4





          Updating apt-file is pain.

          – sjsam
          May 30 '16 at 7:23











        • Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

          – Steve
          Sep 15 '16 at 23:13














        • 2





          As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

          – Camille Goudeseune
          Apr 30 '15 at 20:54






        • 4





          Updating apt-file is pain.

          – sjsam
          May 30 '16 at 7:23











        • Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

          – Steve
          Sep 15 '16 at 23:13








        2




        2





        As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

        – Camille Goudeseune
        Apr 30 '15 at 20:54





        As gazhay commented above, dpkg-query -c foo.deb fails. But dpkg-deb -c foo.deb works.

        – Camille Goudeseune
        Apr 30 '15 at 20:54




        4




        4





        Updating apt-file is pain.

        – sjsam
        May 30 '16 at 7:23





        Updating apt-file is pain.

        – sjsam
        May 30 '16 at 7:23













        Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

        – Steve
        Sep 15 '16 at 23:13





        Note that dpkg -L doesn't take into account files that may have been excluded with --path-exclude=. It will list them even though they were not installed.

        – Steve
        Sep 15 '16 at 23:13













        23














        @drysdam dpkg -L <package_name> might be the best for your immediate problem, but you might like to read the Filesystem Hierarchy Standard, which describes where different types of files live in the filesystem.



        It is not definitive; it is just a descriptive account of the way things "mostly" are.



        More specific to Ubuntu is the Ubuntu Server Guide, which will describe everything in enough detail. (So many of the other guides gloss over too many of the details, but this should be better.)






        share|improve this answer






























          23














          @drysdam dpkg -L <package_name> might be the best for your immediate problem, but you might like to read the Filesystem Hierarchy Standard, which describes where different types of files live in the filesystem.



          It is not definitive; it is just a descriptive account of the way things "mostly" are.



          More specific to Ubuntu is the Ubuntu Server Guide, which will describe everything in enough detail. (So many of the other guides gloss over too many of the details, but this should be better.)






          share|improve this answer




























            23












            23








            23







            @drysdam dpkg -L <package_name> might be the best for your immediate problem, but you might like to read the Filesystem Hierarchy Standard, which describes where different types of files live in the filesystem.



            It is not definitive; it is just a descriptive account of the way things "mostly" are.



            More specific to Ubuntu is the Ubuntu Server Guide, which will describe everything in enough detail. (So many of the other guides gloss over too many of the details, but this should be better.)






            share|improve this answer















            @drysdam dpkg -L <package_name> might be the best for your immediate problem, but you might like to read the Filesystem Hierarchy Standard, which describes where different types of files live in the filesystem.



            It is not definitive; it is just a descriptive account of the way things "mostly" are.



            More specific to Ubuntu is the Ubuntu Server Guide, which will describe everything in enough detail. (So many of the other guides gloss over too many of the details, but this should be better.)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 5 '17 at 10:05









            patrickvacek

            462611




            462611










            answered Mar 29 '11 at 10:12









            sarnoldsarnold

            875512




            875512























                13














                if you just want a single installed package, you can find the package name



                $ apt-cache search rabbitmq
                ...
                librabbitmq-dev
                ...


                then use dpkg --listfiles



                $ dpkg --listfiles librabbitmq-dev
                /usr/lib/x86-64/librabbit...
                . . .





                share|improve this answer
























                • might depend on the version but i had to use dpkg -L <package>

                  – JimB
                  Jun 30 '17 at 18:28











                • dpkg -L works only on installed packages.

                  – kenorb
                  Jan 14 at 20:44
















                13














                if you just want a single installed package, you can find the package name



                $ apt-cache search rabbitmq
                ...
                librabbitmq-dev
                ...


                then use dpkg --listfiles



                $ dpkg --listfiles librabbitmq-dev
                /usr/lib/x86-64/librabbit...
                . . .





                share|improve this answer
























                • might depend on the version but i had to use dpkg -L <package>

                  – JimB
                  Jun 30 '17 at 18:28











                • dpkg -L works only on installed packages.

                  – kenorb
                  Jan 14 at 20:44














                13












                13








                13







                if you just want a single installed package, you can find the package name



                $ apt-cache search rabbitmq
                ...
                librabbitmq-dev
                ...


                then use dpkg --listfiles



                $ dpkg --listfiles librabbitmq-dev
                /usr/lib/x86-64/librabbit...
                . . .





                share|improve this answer













                if you just want a single installed package, you can find the package name



                $ apt-cache search rabbitmq
                ...
                librabbitmq-dev
                ...


                then use dpkg --listfiles



                $ dpkg --listfiles librabbitmq-dev
                /usr/lib/x86-64/librabbit...
                . . .






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 18 '14 at 0:30









                don brightdon bright

                34438




                34438













                • might depend on the version but i had to use dpkg -L <package>

                  – JimB
                  Jun 30 '17 at 18:28











                • dpkg -L works only on installed packages.

                  – kenorb
                  Jan 14 at 20:44



















                • might depend on the version but i had to use dpkg -L <package>

                  – JimB
                  Jun 30 '17 at 18:28











                • dpkg -L works only on installed packages.

                  – kenorb
                  Jan 14 at 20:44

















                might depend on the version but i had to use dpkg -L <package>

                – JimB
                Jun 30 '17 at 18:28





                might depend on the version but i had to use dpkg -L <package>

                – JimB
                Jun 30 '17 at 18:28













                dpkg -L works only on installed packages.

                – kenorb
                Jan 14 at 20:44





                dpkg -L works only on installed packages.

                – kenorb
                Jan 14 at 20:44











                11














                The answer given by @Gilles is very useful (actually, the answer was improved over time).



                Furthermore, I have a tip for the ones that don't want to install any auxiliary package (like the apt-file):




                • Go to http://packages.ubuntu.com/;

                • Go to the Search package directories session;

                • Insert your package name in the Keyword field and select Only show exact matches;

                • Select your distribution and click in the Search button.

                • Select the desirable package in the next screen;

                • In the end of page, click in the list of files link next to your architecture name;

                • The next page will show the list of files of your package.


                As an example: http://packages.ubuntu.com/trusty/amd64/multipath-tools/filelist






                share|improve this answer





















                • 1





                  curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

                  – Nico57
                  Aug 28 '18 at 23:57
















                11














                The answer given by @Gilles is very useful (actually, the answer was improved over time).



                Furthermore, I have a tip for the ones that don't want to install any auxiliary package (like the apt-file):




                • Go to http://packages.ubuntu.com/;

                • Go to the Search package directories session;

                • Insert your package name in the Keyword field and select Only show exact matches;

                • Select your distribution and click in the Search button.

                • Select the desirable package in the next screen;

                • In the end of page, click in the list of files link next to your architecture name;

                • The next page will show the list of files of your package.


                As an example: http://packages.ubuntu.com/trusty/amd64/multipath-tools/filelist






                share|improve this answer





















                • 1





                  curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

                  – Nico57
                  Aug 28 '18 at 23:57














                11












                11








                11







                The answer given by @Gilles is very useful (actually, the answer was improved over time).



                Furthermore, I have a tip for the ones that don't want to install any auxiliary package (like the apt-file):




                • Go to http://packages.ubuntu.com/;

                • Go to the Search package directories session;

                • Insert your package name in the Keyword field and select Only show exact matches;

                • Select your distribution and click in the Search button.

                • Select the desirable package in the next screen;

                • In the end of page, click in the list of files link next to your architecture name;

                • The next page will show the list of files of your package.


                As an example: http://packages.ubuntu.com/trusty/amd64/multipath-tools/filelist






                share|improve this answer















                The answer given by @Gilles is very useful (actually, the answer was improved over time).



                Furthermore, I have a tip for the ones that don't want to install any auxiliary package (like the apt-file):




                • Go to http://packages.ubuntu.com/;

                • Go to the Search package directories session;

                • Insert your package name in the Keyword field and select Only show exact matches;

                • Select your distribution and click in the Search button.

                • Select the desirable package in the next screen;

                • In the end of page, click in the list of files link next to your architecture name;

                • The next page will show the list of files of your package.


                As an example: http://packages.ubuntu.com/trusty/amd64/multipath-tools/filelist







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 13 '17 at 12:24









                Community

                1




                1










                answered Mar 23 '14 at 4:18









                Rarylson FreitasRarylson Freitas

                2,04921014




                2,04921014








                • 1





                  curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

                  – Nico57
                  Aug 28 '18 at 23:57














                • 1





                  curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

                  – Nico57
                  Aug 28 '18 at 23:57








                1




                1





                curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

                – Nico57
                Aug 28 '18 at 23:57





                curl -s https://packages.ubuntu.com/$(lsb_release -cs)/$(dpkg --print-architecture)/<<PACKAGE NAME>>/filelist | sed '1,/pfilelist/d;/</div>/,$d' :-)

                – Nico57
                Aug 28 '18 at 23:57











                0














                Here's one way to do it for packages you don't have installed yet. Just change "autoconf" below for the package you are trying to get the list of files for:



                mkdir tmp
                cd tmp
                apt-get download autoconf
                ar x *.deb
                tar tf data.*
                cd ..
                rm -r tmp





                share|improve this answer




























                  0














                  Here's one way to do it for packages you don't have installed yet. Just change "autoconf" below for the package you are trying to get the list of files for:



                  mkdir tmp
                  cd tmp
                  apt-get download autoconf
                  ar x *.deb
                  tar tf data.*
                  cd ..
                  rm -r tmp





                  share|improve this answer


























                    0












                    0








                    0







                    Here's one way to do it for packages you don't have installed yet. Just change "autoconf" below for the package you are trying to get the list of files for:



                    mkdir tmp
                    cd tmp
                    apt-get download autoconf
                    ar x *.deb
                    tar tf data.*
                    cd ..
                    rm -r tmp





                    share|improve this answer













                    Here's one way to do it for packages you don't have installed yet. Just change "autoconf" below for the package you are trying to get the list of files for:



                    mkdir tmp
                    cd tmp
                    apt-get download autoconf
                    ar x *.deb
                    tar tf data.*
                    cd ..
                    rm -r tmp






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 22 '16 at 22:36









                    JakeJake

                    14614




                    14614























                        -1














                        Use the synaptic-package-manager:



                        enter image description here



                        Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it. The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'.






                        share|improve this answer




























                          -1














                          Use the synaptic-package-manager:



                          enter image description here



                          Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it. The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'.






                          share|improve this answer


























                            -1












                            -1








                            -1







                            Use the synaptic-package-manager:



                            enter image description here



                            Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it. The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'.






                            share|improve this answer













                            Use the synaptic-package-manager:



                            enter image description here



                            Assuming that we'd like to locate the files of the autotools-dev package, under 'Quick filter' enter autotools-dev to locate it. The autotools-dev package appears automatically. Select it by clicking on it and then press 'Properties'. In the appearing dialog, select the tab 'Installed Files'.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 30 '17 at 15:36









                            Luigi Capo Di IstriaLuigi Capo Di Istria

                            773




                            773






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f32507%2fhow-do-i-get-a-list-of-installed-files-from-a-package%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                How to change which sound is reproduced for terminal bell?

                                Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                                Can I use Tabulator js library in my java Spring + Thymeleaf project?