Jump to content

Linux and Uninstalling

Go to solution Solved by RedWulf,

Are you asking how to uninstall a program without removing its dependents or how to remove everything but bare Ubuntu?

sudo apt-get remove program-package

I think thats the general uninstall for debian 

Uninstalling a Linux program without removing other stuff thats needed like lib's and that, and also not removing any of the lib's that come with the Ubuntu from install.

What's the commands I would need to use?

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/
Share on other sites

Link to post
Share on other sites

Are you asking how to uninstall a program without removing its dependents or how to remove everything but bare Ubuntu?

sudo apt-get remove program-package

I think thats the general uninstall for debian 

                     .
                   _/ V\
                  / /  /
                <<    |
                ,/    ]
              ,/      ]
            ,/        |
           /    \  \ /
          /      | | |
    ______|   __/_/| |
   /_______\______}\__}  

Spoiler

[I5-12600k | 32gb DDR5 6000 | RTX5070 | 2x1tb M.2]

 

[Ryzen 5 1600 | 16gb DDR4 3200 | GTX1030 | 4x 8tb HDD] 

 

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/#findComment-7473066
Share on other sites

Link to post
Share on other sites

apt-get remove packagename I think is what you're looking for. It just removes the binaries, not the dependencies and data files.

A Guide For Getting Started With Linux

My first rig:   CPU: AMD Athlon X4 860k Cooler: Cooler Master Hyper T4 MoBo: Gigabyte GA-F2A88XM-DH3 Video Card: EVGA GTX 750 Ti Superclocked RAM: 8GB Kingston HyperX Fury White 1866MHz Storage: WD Blue 1TB PSU: EVGA 100-W1-0500-KR Case: Rosewill SRM-01

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/#findComment-7473074
Share on other sites

Link to post
Share on other sites

3 minutes ago, RedWulf said:

Are you asking how to uninstall a program without removing its dependents or how to remove everything but bare Ubuntu?

sudo apt-get remove program-package

I think thats the general uninstall for debian 

 

2 minutes ago, steezemageeze said:

apt-get remove packagename I think is what you're looking for. It just removes the binaries, not the dependencies and data files.

Yea sorry if I specyfied myself a litte bad. Last time I tryed to remove 1 program i got instructions to use purge and autoremove, and after that the server was useless becouse all the lib programs where gone so I had to do a reinstall :P

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/#findComment-7473087
Share on other sites

Link to post
Share on other sites

Just now, Joveice said:

 

Yea sorry if I specyfied myself a litte bad. Last time I tryed to remove 1 program i got instructions to use purge and autoremove, and after that the server was useless becouse all the lib programs where gone so I had to do a reinstall :P

We got the meaning lol. Purge will completely remove the program, with all of its files and configs, and autoremove gets rid of orphaned dependencies. I'd guess using autoremove is where you went wrong.

A Guide For Getting Started With Linux

My first rig:   CPU: AMD Athlon X4 860k Cooler: Cooler Master Hyper T4 MoBo: Gigabyte GA-F2A88XM-DH3 Video Card: EVGA GTX 750 Ti Superclocked RAM: 8GB Kingston HyperX Fury White 1866MHz Storage: WD Blue 1TB PSU: EVGA 100-W1-0500-KR Case: Rosewill SRM-01

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/#findComment-7473106
Share on other sites

Link to post
Share on other sites

1 minute ago, steezemageeze said:

We got the meaning lol. Purge will completely remove the program, with all of its files and configs, and autoremove gets rid of orphaned dependencies. I'd guess using autoremove is where you went wrong.

So I could use purge? I wanna remove stuff like mailserver but still keep all the lib's that ubuntu had becouse I know that if some are missing my game server won't work

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/#findComment-7473117
Share on other sites

Link to post
Share on other sites

Just now, Joveice said:

So I could use purge? I wanna remove stuff like mailserver but still keep all the lib's that ubuntu had becouse I know that if some are missing my game server won't work

I think purge will remove all associates of the target program regardless of if other programs use those libs. However, updates and reinstall may correct the issue. 

                     .
                   _/ V\
                  / /  /
                <<    |
                ,/    ]
              ,/      ]
            ,/        |
           /    \  \ /
          /      | | |
    ______|   __/_/| |
   /_______\______}\__}  

Spoiler

[I5-12600k | 32gb DDR5 6000 | RTX5070 | 2x1tb M.2]

 

[Ryzen 5 1600 | 16gb DDR4 3200 | GTX1030 | 4x 8tb HDD] 

 

Link to comment
https://linustechtips.com/topic/569436-linux-and-uninstalling/#findComment-7473131
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×