bugGNU Octave - Bugs: bug #41812, pkg uninstall asdf as root removes...


bug #41812: pkg uninstall asdf as root removes octave_packages

Submitted by:  Clemens Buchacher <drizzd>
Submitted on:  Sun 09 Mar 2014 05:02:57 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Clemens Buchacher Open/Closed:  Closed
Release:  3.8.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 09 Mar 2014 06:42:25 PM UTC, comment #1: 

Thanks for your bug report. This has been an issue in previous releases as well, and has been previously reported as bug #36453. Closing as duplicate.

Mike Miller <mtmiller>
Project Administrator
Sun 09 Mar 2014 05:02:57 PM UTC, original submission:  

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

# name: name
# type: sq_string
# elements: 1
# length: 13

$ 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 Buchacher <drizzd>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by drizzd (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-09 mtmiller StatusNone => Duplicate
        Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #36453

    Back to the top

    Powered by Savane 3.5