How do I completely remove/uninstall an application?

108

You could use apt-cache search KEYWORDS to search for the package name which contains KEYWORDS in its description.

You can also use dpkg -l PACKAGENAME to list all installed packages that match the pattern PACKAGENAME. You can use ? (one arbitrary character) and * (any number of arbitrary characters) as wildcards.

Then use sudo apt-get autoremove --purge PACKAGE to remove PACKAGE completely, including configuration and all no longer needed dependencies.

Example for PiTiVi:

  • Find out the package name:

    $ apt-cache search PiTiVi
    pitivi - non-linear audio/video editor using GStreamer
    
  • Purge the package and its dependencies:

    $ sudo apt-get autoremove --purge pitivi
    [...some output...]
    
Share:
108

Related videos on Youtube

korallo
Author by

korallo

Updated on September 18, 2022

Comments

  • korallo
    korallo over 1 year

    I am writing plugin, which don't require to run main method, I want to use Spring-Context to have benefits of dependency injection.

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>5.3.16</version>
        </dependency>
    

    I am sure that I am missing some part of configuration, but I couldn't find way how to configure spring context in my case. Test Service is null

    "Main" class

        @Component
    public final class GuildsFeatures extends JavaPlugin {
    
    
        @Autowired
        private TestService testService;
    
    
    
        @Override
        public void onEnable() {
            //testservice is null
            testService.test();
        }
    
        @Override
        public void onDisable() {
    
        }
    
    }
    

    Service class

    @Service
    public class TestService {
    
        public void test(){
            System.out.println("test");
        }
    }
    
  • Emily Shan
    Emily Shan over 8 years
    Ok thanks! And by the way do you know what happened to my minecraft? I can't do anything on servers I used to use java 7 now I switched to java 8 and a lot of things go wrong in singleplayer but in multiplayer things go better :/
  • Emily Shan
    Emily Shan over 8 years
    Oh ok, it's all right. And by the way, what is the difference between the up arrow and the check? I always forget it sorry. And thanks a lot for the commands they worked!{for me, since I'm horrible with computers, almost nothing works(Idk how to use them)}
  • Emily Shan
    Emily Shan over 8 years
    By the way, for cinelerra, how do I find out the package name? When I go to applications then sound and videos then it says Cinelerra-CV, when I put "apt-cache search cinelerra-cv" it says "cinelerra-cv - Non-linear audio/video authoring tool"