Kernel source downloaded accidentally, and I want to delete it

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












Didn't see a solved thread before asking this, but if I'm stupid, pls point me to the one.



So by accidentally I mean it was not what I expected it to download. I managed to setup closed NVIDIA driver with Secure Boot on, but the latest source I could find was 4.15.13 (if there's newer, I would appreciate if somebody linked me the one) (actually header from /usr/src was enough to set it up, but still, 4.15.13 was the latest I could find). I executed



sudo apt source linux-source


and others, and now this is how my Home looks like:





This invokes me to delete all of these by hand (y'know, sudo rm), but I just thought if it was downloaded from apt, then these must be the similar automatic way to get rid of it too?



I would appreciate any help sharing info, it is my first month to face Linux as a whole, but it's fun, ain't it?







share|improve this question


























    up vote
    1
    down vote

    favorite












    Didn't see a solved thread before asking this, but if I'm stupid, pls point me to the one.



    So by accidentally I mean it was not what I expected it to download. I managed to setup closed NVIDIA driver with Secure Boot on, but the latest source I could find was 4.15.13 (if there's newer, I would appreciate if somebody linked me the one) (actually header from /usr/src was enough to set it up, but still, 4.15.13 was the latest I could find). I executed



    sudo apt source linux-source


    and others, and now this is how my Home looks like:





    This invokes me to delete all of these by hand (y'know, sudo rm), but I just thought if it was downloaded from apt, then these must be the similar automatic way to get rid of it too?



    I would appreciate any help sharing info, it is my first month to face Linux as a whole, but it's fun, ain't it?







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Didn't see a solved thread before asking this, but if I'm stupid, pls point me to the one.



      So by accidentally I mean it was not what I expected it to download. I managed to setup closed NVIDIA driver with Secure Boot on, but the latest source I could find was 4.15.13 (if there's newer, I would appreciate if somebody linked me the one) (actually header from /usr/src was enough to set it up, but still, 4.15.13 was the latest I could find). I executed



      sudo apt source linux-source


      and others, and now this is how my Home looks like:





      This invokes me to delete all of these by hand (y'know, sudo rm), but I just thought if it was downloaded from apt, then these must be the similar automatic way to get rid of it too?



      I would appreciate any help sharing info, it is my first month to face Linux as a whole, but it's fun, ain't it?







      share|improve this question














      Didn't see a solved thread before asking this, but if I'm stupid, pls point me to the one.



      So by accidentally I mean it was not what I expected it to download. I managed to setup closed NVIDIA driver with Secure Boot on, but the latest source I could find was 4.15.13 (if there's newer, I would appreciate if somebody linked me the one) (actually header from /usr/src was enough to set it up, but still, 4.15.13 was the latest I could find). I executed



      sudo apt source linux-source


      and others, and now this is how my Home looks like:





      This invokes me to delete all of these by hand (y'know, sudo rm), but I just thought if it was downloaded from apt, then these must be the similar automatic way to get rid of it too?



      I would appreciate any help sharing info, it is my first month to face Linux as a whole, but it's fun, ain't it?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 21 at 20:44

























      asked Apr 21 at 16:07









      xt1zer

      236




      236




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          As you can see with command man apt-get:



          Note that source packages are not installed and tracked in the dpkg
          database like binary packages; they are simply downloaded to the
          current directory, like source tarballs.


          There is no other way to remove sources than by hand.






          share|improve this answer




















          • Quite a simple response, thanks! Could you point if Home is the only place these files can be?
            – xt1zer
            Apr 21 at 16:39










          • @xt1zer drop then where ever you like just run that command the the intended directory
            – George Udosen
            Apr 21 at 17:47

















          up vote
          1
          down vote













          I believe source files are just source files and used to build and install their respective apps, and these source files are then removed via the rm command. So in that case a simple delete will not hurt your system.






          share|improve this answer






















          • with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
            – Pasi Suominen
            Apr 21 at 16:21










          • I know that updated my answer to reflect that!
            – George Udosen
            Apr 21 at 16:24










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1026976%2fkernel-source-downloaded-accidentally-and-i-want-to-delete-it%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          As you can see with command man apt-get:



          Note that source packages are not installed and tracked in the dpkg
          database like binary packages; they are simply downloaded to the
          current directory, like source tarballs.


          There is no other way to remove sources than by hand.






          share|improve this answer




















          • Quite a simple response, thanks! Could you point if Home is the only place these files can be?
            – xt1zer
            Apr 21 at 16:39










          • @xt1zer drop then where ever you like just run that command the the intended directory
            – George Udosen
            Apr 21 at 17:47














          up vote
          2
          down vote



          accepted










          As you can see with command man apt-get:



          Note that source packages are not installed and tracked in the dpkg
          database like binary packages; they are simply downloaded to the
          current directory, like source tarballs.


          There is no other way to remove sources than by hand.






          share|improve this answer




















          • Quite a simple response, thanks! Could you point if Home is the only place these files can be?
            – xt1zer
            Apr 21 at 16:39










          • @xt1zer drop then where ever you like just run that command the the intended directory
            – George Udosen
            Apr 21 at 17:47












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          As you can see with command man apt-get:



          Note that source packages are not installed and tracked in the dpkg
          database like binary packages; they are simply downloaded to the
          current directory, like source tarballs.


          There is no other way to remove sources than by hand.






          share|improve this answer












          As you can see with command man apt-get:



          Note that source packages are not installed and tracked in the dpkg
          database like binary packages; they are simply downloaded to the
          current directory, like source tarballs.


          There is no other way to remove sources than by hand.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 21 at 16:20









          Pasi Suominen

          43526




          43526











          • Quite a simple response, thanks! Could you point if Home is the only place these files can be?
            – xt1zer
            Apr 21 at 16:39










          • @xt1zer drop then where ever you like just run that command the the intended directory
            – George Udosen
            Apr 21 at 17:47
















          • Quite a simple response, thanks! Could you point if Home is the only place these files can be?
            – xt1zer
            Apr 21 at 16:39










          • @xt1zer drop then where ever you like just run that command the the intended directory
            – George Udosen
            Apr 21 at 17:47















          Quite a simple response, thanks! Could you point if Home is the only place these files can be?
          – xt1zer
          Apr 21 at 16:39




          Quite a simple response, thanks! Could you point if Home is the only place these files can be?
          – xt1zer
          Apr 21 at 16:39












          @xt1zer drop then where ever you like just run that command the the intended directory
          – George Udosen
          Apr 21 at 17:47




          @xt1zer drop then where ever you like just run that command the the intended directory
          – George Udosen
          Apr 21 at 17:47












          up vote
          1
          down vote













          I believe source files are just source files and used to build and install their respective apps, and these source files are then removed via the rm command. So in that case a simple delete will not hurt your system.






          share|improve this answer






















          • with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
            – Pasi Suominen
            Apr 21 at 16:21










          • I know that updated my answer to reflect that!
            – George Udosen
            Apr 21 at 16:24














          up vote
          1
          down vote













          I believe source files are just source files and used to build and install their respective apps, and these source files are then removed via the rm command. So in that case a simple delete will not hurt your system.






          share|improve this answer






















          • with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
            – Pasi Suominen
            Apr 21 at 16:21










          • I know that updated my answer to reflect that!
            – George Udosen
            Apr 21 at 16:24












          up vote
          1
          down vote










          up vote
          1
          down vote









          I believe source files are just source files and used to build and install their respective apps, and these source files are then removed via the rm command. So in that case a simple delete will not hurt your system.






          share|improve this answer














          I believe source files are just source files and used to build and install their respective apps, and these source files are then removed via the rm command. So in that case a simple delete will not hurt your system.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 21 at 16:23

























          answered Apr 21 at 16:18









          George Udosen

          17k93559




          17k93559











          • with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
            – Pasi Suominen
            Apr 21 at 16:21










          • I know that updated my answer to reflect that!
            – George Udosen
            Apr 21 at 16:24
















          • with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
            – Pasi Suominen
            Apr 21 at 16:21










          • I know that updated my answer to reflect that!
            – George Udosen
            Apr 21 at 16:24















          with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
          – Pasi Suominen
          Apr 21 at 16:21




          with apt-get source, apt-get fetches source packages to your working directory, they are not installed.
          – Pasi Suominen
          Apr 21 at 16:21












          I know that updated my answer to reflect that!
          – George Udosen
          Apr 21 at 16:24




          I know that updated my answer to reflect that!
          – George Udosen
          Apr 21 at 16:24

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026976%2fkernel-source-downloaded-accidentally-and-i-want-to-delete-it%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491