SOLVED How to uninstall a software

Status
Not open for further replies.

shant

Dabbler
Joined
Sep 23, 2015
Messages
13
Hello, i recently installed OpenVpn using the shell, now im trying to uninstall it completely, im trying
"apt-get --purge remove openvpn"
but that does not seem to work,says "command not found" what command can i use instead ?
 
D

dlavigne

Guest
pkg delete

I do hope you meant the shell of a jail, not the shell of the operating system....
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
If you installed it in a jail, as you should have done, the most thorough way to remove it is simply to delete the jail. If you somehow installed it on top of the FreeNAS installation itself, your best bet is to download your config file, do a clean FreeNAS installation, and upload the saved config.

apt-get is a command for a Linux package manager (specifically, the one used by Debian-based distributions). FreeNAS is FreeBSD, not Linux.
 

shant

Dabbler
Joined
Sep 23, 2015
Messages
13
root@OpenVpn:/ # pkg delete openvpn
pkg: /var/db/pkg permissions (0777) too lax
pkg: Error accessing the package database

i may have to reinstall FreeNas...
if i save the config file and reupload it, all my pools, shares, should come back as is, right ? or do i have to do extra procedures ? what about the installed plugins and their config?
 

shant

Dabbler
Joined
Sep 23, 2015
Messages
13
yes, it was installed inside a jail, when i first deleted the jail, somehow the package didn't uninstall for some reason, i could still browse the files with windows in my jails partition, also shell still showed that openvpn was installed, what i did was create a new jail using the same name, then used "pkg delete openvpn" like dlavigne suggested, then i deleted the jail again, seems to be uninstalled successfully now, thanks a lot!
there is one folder left called ".Openvpn.meta" containing a file called "jailtype", should i leave that as is or recommended to remove it as well ?

edit: used "chmod -R 777" on that folder and deleted it as well.

thank you.
 
Last edited:
Status
Not open for further replies.
Top