[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41812] pkg uninstall asdf as root removes oct
From: |
Clemens Buchacher |
Subject: |
[Octave-bug-tracker] [bug #41812] pkg uninstall asdf as root removes octave_packages |
Date: |
Sun, 09 Mar 2014 17:02:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?41812>
Summary: pkg uninstall asdf as root removes octave_packages
Project: GNU Octave
Submitted by: drizzd
Submitted on: Sun 09 Mar 2014 05:02:57 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Clemens Buchacher
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Running pkg uninstall on a package that is not currently installed or that
does not exist seems to end up removing /usr/share/octave/octave_packages,
essentially removing all packages. Other installed package files remain,
however.
The same does not happen for a regular user. The -global flag of pkg install
makes no difference either.
$ sudo octave -q --eval 'pkg list'
Package Name | Version | Installation directory
---------------+---------+-----------------------
general | 1.3.4 | /usr/share/octave/packages/general-1.3.4
miscellaneous | 1.2.0 | /usr/share/octave/packages/miscellaneous-1.2.0
$ grep -A5 'name: name' /usr/share/octave/octave_packages
# name: name
# type: sq_string
# elements: 1
# length: 7
general
--
# name: name
# type: sq_string
# elements: 1
# length: 13
miscellaneous
$ sudo octave -q --eval 'pkg uninstall asdf'
warning: some of the packages you want to uninstall are not installed
$ sudo octave -q --eval 'pkg list'
no packages installed.
$ ls /usr/share/octave/octave_packages
ls: cannot access /usr/share/octave/octave_packages: No such file or
directory
Clemens
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41812>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41812] pkg uninstall asdf as root removes octave_packages,
Clemens Buchacher <=