Aptitude On Kali Linux












0














I have just installed Kali Linux 2018.2 and tried to search some installed packages on it as i do on Ubuntu



aptitude search *package name*


but it seems like this command does not work on Kali Linux.



I have also tried to install Aptitude



/bin/sh -c 'apt-get install -y aptitude'



but with no success :



E: Package 'aptitude' has no installation candidate


if Aptitude does not exist on Kali Linux, is there any other alternatives to search the installed packages and the packages that the Kali Linux repositories have?



Output of cat /etc/*-release



DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
VERSION="2018.2"
ID_LIKE=debian









share|improve this question
























  • What debian version are 18.2? That's can be a Ubuntu version but not a debian one. Maybe you're using a derivated distribution who doesn't have aptitude. Also, aptitude is only a "friendly" interface for apt-get
    – Sakura Kinomoto
    Dec 8 at 2:41










  • @SakuraKinomoto i meant 2018.2 no it's Debian i am sure
    – Jwan
    Dec 8 at 11:46










  • Can you do a "cat /etc/os-release" or "lsb_release -da" and update your question with the result?
    – Sakura Kinomoto
    Dec 8 at 11:49












  • @SakuraKinomoto just did
    – Jwan
    Dec 8 at 12:10






  • 1




    That's explain it, it's Kali linux, not Debian.
    – Sakura Kinomoto
    Dec 8 at 12:22
















0














I have just installed Kali Linux 2018.2 and tried to search some installed packages on it as i do on Ubuntu



aptitude search *package name*


but it seems like this command does not work on Kali Linux.



I have also tried to install Aptitude



/bin/sh -c 'apt-get install -y aptitude'



but with no success :



E: Package 'aptitude' has no installation candidate


if Aptitude does not exist on Kali Linux, is there any other alternatives to search the installed packages and the packages that the Kali Linux repositories have?



Output of cat /etc/*-release



DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
VERSION="2018.2"
ID_LIKE=debian









share|improve this question
























  • What debian version are 18.2? That's can be a Ubuntu version but not a debian one. Maybe you're using a derivated distribution who doesn't have aptitude. Also, aptitude is only a "friendly" interface for apt-get
    – Sakura Kinomoto
    Dec 8 at 2:41










  • @SakuraKinomoto i meant 2018.2 no it's Debian i am sure
    – Jwan
    Dec 8 at 11:46










  • Can you do a "cat /etc/os-release" or "lsb_release -da" and update your question with the result?
    – Sakura Kinomoto
    Dec 8 at 11:49












  • @SakuraKinomoto just did
    – Jwan
    Dec 8 at 12:10






  • 1




    That's explain it, it's Kali linux, not Debian.
    – Sakura Kinomoto
    Dec 8 at 12:22














0












0








0







I have just installed Kali Linux 2018.2 and tried to search some installed packages on it as i do on Ubuntu



aptitude search *package name*


but it seems like this command does not work on Kali Linux.



I have also tried to install Aptitude



/bin/sh -c 'apt-get install -y aptitude'



but with no success :



E: Package 'aptitude' has no installation candidate


if Aptitude does not exist on Kali Linux, is there any other alternatives to search the installed packages and the packages that the Kali Linux repositories have?



Output of cat /etc/*-release



DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
VERSION="2018.2"
ID_LIKE=debian









share|improve this question















I have just installed Kali Linux 2018.2 and tried to search some installed packages on it as i do on Ubuntu



aptitude search *package name*


but it seems like this command does not work on Kali Linux.



I have also tried to install Aptitude



/bin/sh -c 'apt-get install -y aptitude'



but with no success :



E: Package 'aptitude' has no installation candidate


if Aptitude does not exist on Kali Linux, is there any other alternatives to search the installed packages and the packages that the Kali Linux repositories have?



Output of cat /etc/*-release



DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
VERSION="2018.2"
ID_LIKE=debian






linux kali-linux aptitude






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 8 at 15:43









Sakura Kinomoto

1238




1238










asked Dec 7 at 21:56









Jwan

11




11












  • What debian version are 18.2? That's can be a Ubuntu version but not a debian one. Maybe you're using a derivated distribution who doesn't have aptitude. Also, aptitude is only a "friendly" interface for apt-get
    – Sakura Kinomoto
    Dec 8 at 2:41










  • @SakuraKinomoto i meant 2018.2 no it's Debian i am sure
    – Jwan
    Dec 8 at 11:46










  • Can you do a "cat /etc/os-release" or "lsb_release -da" and update your question with the result?
    – Sakura Kinomoto
    Dec 8 at 11:49












  • @SakuraKinomoto just did
    – Jwan
    Dec 8 at 12:10






  • 1




    That's explain it, it's Kali linux, not Debian.
    – Sakura Kinomoto
    Dec 8 at 12:22


















  • What debian version are 18.2? That's can be a Ubuntu version but not a debian one. Maybe you're using a derivated distribution who doesn't have aptitude. Also, aptitude is only a "friendly" interface for apt-get
    – Sakura Kinomoto
    Dec 8 at 2:41










  • @SakuraKinomoto i meant 2018.2 no it's Debian i am sure
    – Jwan
    Dec 8 at 11:46










  • Can you do a "cat /etc/os-release" or "lsb_release -da" and update your question with the result?
    – Sakura Kinomoto
    Dec 8 at 11:49












  • @SakuraKinomoto just did
    – Jwan
    Dec 8 at 12:10






  • 1




    That's explain it, it's Kali linux, not Debian.
    – Sakura Kinomoto
    Dec 8 at 12:22
















What debian version are 18.2? That's can be a Ubuntu version but not a debian one. Maybe you're using a derivated distribution who doesn't have aptitude. Also, aptitude is only a "friendly" interface for apt-get
– Sakura Kinomoto
Dec 8 at 2:41




What debian version are 18.2? That's can be a Ubuntu version but not a debian one. Maybe you're using a derivated distribution who doesn't have aptitude. Also, aptitude is only a "friendly" interface for apt-get
– Sakura Kinomoto
Dec 8 at 2:41












@SakuraKinomoto i meant 2018.2 no it's Debian i am sure
– Jwan
Dec 8 at 11:46




@SakuraKinomoto i meant 2018.2 no it's Debian i am sure
– Jwan
Dec 8 at 11:46












Can you do a "cat /etc/os-release" or "lsb_release -da" and update your question with the result?
– Sakura Kinomoto
Dec 8 at 11:49






Can you do a "cat /etc/os-release" or "lsb_release -da" and update your question with the result?
– Sakura Kinomoto
Dec 8 at 11:49














@SakuraKinomoto just did
– Jwan
Dec 8 at 12:10




@SakuraKinomoto just did
– Jwan
Dec 8 at 12:10




1




1




That's explain it, it's Kali linux, not Debian.
– Sakura Kinomoto
Dec 8 at 12:22




That's explain it, it's Kali linux, not Debian.
– Sakura Kinomoto
Dec 8 at 12:22










1 Answer
1






active

oldest

votes


















1














As a first response, maybe you didn't have any repository configured. In this case, apt-get will not work at all. You need to add the repositories for your distribution on /etc/apt/sources.list file. The needed repository are:




deb http://http.kali.org/kali kali-rolling main non-free contrib




(You can check a list of mirrors here: http://http.kali.org/README.mirrorlist). Use the best mirror for you.



I don't know how kali linux manages this, but, I can give some guidelines for using directly apt for do who you request:



First of all, remember to do a update for getting the latest packages database:




apt-get update




For updating all packages:




apt-get upgrade



apt-get dist-upgrade <-- If you update to a newer release.




For doing searches, use apt too. You can use it too for viewing a concrete package information.




apt-cache search package name



apt-cache show package name




For checking if you have a package installed, use dpkg. If the package you're searching for appears on the list (with status / first column as ii) you have it installed:




dpkg -l | grep package name




Also, for added information:




You can use dpkg for search who package owns a file: dpkg -S filename



You can use dpkg for list files from a package: dpkg -L package







share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f1381773%2faptitude-on-kali-linux%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    As a first response, maybe you didn't have any repository configured. In this case, apt-get will not work at all. You need to add the repositories for your distribution on /etc/apt/sources.list file. The needed repository are:




    deb http://http.kali.org/kali kali-rolling main non-free contrib




    (You can check a list of mirrors here: http://http.kali.org/README.mirrorlist). Use the best mirror for you.



    I don't know how kali linux manages this, but, I can give some guidelines for using directly apt for do who you request:



    First of all, remember to do a update for getting the latest packages database:




    apt-get update




    For updating all packages:




    apt-get upgrade



    apt-get dist-upgrade <-- If you update to a newer release.




    For doing searches, use apt too. You can use it too for viewing a concrete package information.




    apt-cache search package name



    apt-cache show package name




    For checking if you have a package installed, use dpkg. If the package you're searching for appears on the list (with status / first column as ii) you have it installed:




    dpkg -l | grep package name




    Also, for added information:




    You can use dpkg for search who package owns a file: dpkg -S filename



    You can use dpkg for list files from a package: dpkg -L package







    share|improve this answer




























      1














      As a first response, maybe you didn't have any repository configured. In this case, apt-get will not work at all. You need to add the repositories for your distribution on /etc/apt/sources.list file. The needed repository are:




      deb http://http.kali.org/kali kali-rolling main non-free contrib




      (You can check a list of mirrors here: http://http.kali.org/README.mirrorlist). Use the best mirror for you.



      I don't know how kali linux manages this, but, I can give some guidelines for using directly apt for do who you request:



      First of all, remember to do a update for getting the latest packages database:




      apt-get update




      For updating all packages:




      apt-get upgrade



      apt-get dist-upgrade <-- If you update to a newer release.




      For doing searches, use apt too. You can use it too for viewing a concrete package information.




      apt-cache search package name



      apt-cache show package name




      For checking if you have a package installed, use dpkg. If the package you're searching for appears on the list (with status / first column as ii) you have it installed:




      dpkg -l | grep package name




      Also, for added information:




      You can use dpkg for search who package owns a file: dpkg -S filename



      You can use dpkg for list files from a package: dpkg -L package







      share|improve this answer


























        1












        1








        1






        As a first response, maybe you didn't have any repository configured. In this case, apt-get will not work at all. You need to add the repositories for your distribution on /etc/apt/sources.list file. The needed repository are:




        deb http://http.kali.org/kali kali-rolling main non-free contrib




        (You can check a list of mirrors here: http://http.kali.org/README.mirrorlist). Use the best mirror for you.



        I don't know how kali linux manages this, but, I can give some guidelines for using directly apt for do who you request:



        First of all, remember to do a update for getting the latest packages database:




        apt-get update




        For updating all packages:




        apt-get upgrade



        apt-get dist-upgrade <-- If you update to a newer release.




        For doing searches, use apt too. You can use it too for viewing a concrete package information.




        apt-cache search package name



        apt-cache show package name




        For checking if you have a package installed, use dpkg. If the package you're searching for appears on the list (with status / first column as ii) you have it installed:




        dpkg -l | grep package name




        Also, for added information:




        You can use dpkg for search who package owns a file: dpkg -S filename



        You can use dpkg for list files from a package: dpkg -L package







        share|improve this answer














        As a first response, maybe you didn't have any repository configured. In this case, apt-get will not work at all. You need to add the repositories for your distribution on /etc/apt/sources.list file. The needed repository are:




        deb http://http.kali.org/kali kali-rolling main non-free contrib




        (You can check a list of mirrors here: http://http.kali.org/README.mirrorlist). Use the best mirror for you.



        I don't know how kali linux manages this, but, I can give some guidelines for using directly apt for do who you request:



        First of all, remember to do a update for getting the latest packages database:




        apt-get update




        For updating all packages:




        apt-get upgrade



        apt-get dist-upgrade <-- If you update to a newer release.




        For doing searches, use apt too. You can use it too for viewing a concrete package information.




        apt-cache search package name



        apt-cache show package name




        For checking if you have a package installed, use dpkg. If the package you're searching for appears on the list (with status / first column as ii) you have it installed:




        dpkg -l | grep package name




        Also, for added information:




        You can use dpkg for search who package owns a file: dpkg -S filename



        You can use dpkg for list files from a package: dpkg -L package








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 8 at 12:37

























        answered Dec 8 at 12:30









        Sakura Kinomoto

        1238




        1238






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2fsuperuser.com%2fquestions%2f1381773%2faptitude-on-kali-linux%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

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            Origin of the phrase “under your belt”?