1 1
spicedreams

Uninstall packages installed thru armbian-config/softy

Recommended Posts

Hi, my base problem is syncthing not starting on boot. But in trying to solve that it would be useful to uninstall and reinstall syncthing via armbian-config and hence softy.

 

But armbian-config/softy does not let me uninstall syncthing (or for that matter samba, which I also don't want or need on that machine). 

 

Nor does apt: 

sudo apt-get remove --purge samba

reports "Package 'samba' is not installed, so not removed", though armbian-config/softy shows it as installed. 

 

Is there a way to uninstall packages installed via armbian-config/softy?

Thanks

Graham

 

Share this post


Link to post
Share on other sites
34 minutes ago, spicedreams said:

Is there a way to uninstall packages installed via armbian-config/softy?


No. Uninstall is not implemented. Surely it could be done for samba for example, but for some complex install is rather hard to achieve. Armbian provides this utility as is. Last time I was trying to install Syncthing, it was working out of the box. Are you using Stretch perhaps or some 3rd party Linux?

 

The tool itself might report installed components wrongly. It works correctly only on a clean install since checking is done this way: 

SAMBA_STATUS="$([[ -f /etc/samba/smb.conf ]] && echo "on" || echo "off" )"

Sources: https://github.com/armbian/config 

Share this post


Link to post
Share on other sites
1 hour ago, Igor said:

The tool itself might report installed components wrongly. It works correctly only on a clean install since checking is done this way

 

Which is obviously wrong since removed packages might leave config files behind (purge would remove those too). Maybe relying on 'dpkg -s' is a better choice eg. by parsing output from:

dpkg -s samba 2>/dev/null | awk -F": " '/^Status/ {print $2}'

For an installed Samba this will result most probably in 'install ok installed' (first word the desired state, last one the current state, this relates to the first three characters spitten out by 'dpkg -l' but in different order -- see this summary for example). If Samba is not installed (but config file existing since only removed but not purged before) then the string will be empty.

 

If Samba install is somehow broken (mismatch between first and last word and something different than 'ok' in between) an appropriate choice would be to inform the user to fix installation manually?

Share this post


Link to post
Share on other sites

I'm sorry, it's an old thread, but why is there no uninstall implemented in Softy? That would be logical? Alternatively you have to reinstall the whole system now? So Softy is pointless.

Share this post


Link to post
Share on other sites

So I am stuck also? I installed Sonarr, but it wouldn't work, so I installed it with Docker, during the installation Sonarr appeared to be working. But after the docker installation Sonarr crashed. So I want to reinstall Sonarr with Softy, but first I need to remove it... Or there is a way to repair/reinstall... 

Share this post


Link to post
Share on other sites

I also installed OMV via Softy but now would like to uninstall it.  Softy doesn't seem to support uninstall, as of May 2019, and apt purge didn't seem to also remove `openmediavault`.  Does anyone have a clean way to properly uninstall OMV (via Softy?) or do I have to completely reinstall Armbian to get a system without it?

Share this post


Link to post
Share on other sites
5 hours ago, Poincare said:

I also installed OMV via Softy but now would like to uninstall it.  Softy doesn't seem to support uninstall, as of May 2019, and apt purge didn't seem to also remove `openmediavault`.  Does anyone have a clean way to properly uninstall OMV (via Softy?) or do I have to completely reinstall Armbian to get a system without it?


OMV installs all sorts/a lot of applications and junk on the system which means cleaning is a complex operation which has to be maintained with the same insensitivity as installer, while virtually nobody has an interest to do that.

 

You can check OMV forums but I seriously doubt there is any "OMV cleaner" out there. Starting from a clean image is the best and recommended option.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1