Bug 5042 - rpm remove of thinlinc server installation doesn't cleanup correctly
Summary: rpm remove of thinlinc server installation doesn't cleanup correctly
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.15.0
Assignee: Pierre Ossman
URL:
Keywords: prosaic, wilsj_tester
Depends on:
Blocks: 4885
  Show dependency treegraph
 
Reported: 2014-03-26 17:31 CET by Henrik Andersson
Modified: 2022-03-14 15:52 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2014-03-26 17:31:13 CET
The following directories are unoarewned...

/opt/thinlinc/:
total 36
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 5 root root 4096 Mar 26 17:24 ..
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 bin
drwxr-xr-x. 3 root root 4096 Mar 26 17:27 etc
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 lib
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 lib64
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 libexec
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 sbin
drwxr-xr-x. 4 root root 4096 Mar 26 17:27 share

/opt/thinlinc/bin:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/etc:
total 12
drwxr-xr-x. 3 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 tlwebaccess

/opt/thinlinc/etc/tlwebaccess:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 3 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/lib:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/lib64:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/libexec:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/sbin:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/share:
total 16
drwxr-xr-x. 4 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 9 root root 4096 Mar 26 17:27 ..
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 doc
drwxr-xr-x. 3 root root 4096 Mar 26 17:27 man

/opt/thinlinc/share/doc:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 4 root root 4096 Mar 26 17:27 ..

/opt/thinlinc/share/man:
total 12
drwxr-xr-x. 3 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 4 root root 4096 Mar 26 17:27 ..
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 man7

/opt/thinlinc/share/man/man7:
total 8
drwxr-xr-x. 2 root root 4096 Mar 26 17:27 .
drwxr-xr-x. 3 root root 4096 Mar 26 17:27 ..
Comment 2 Pierre Ossman cendio 2022-03-07 17:31:06 CET
This is fixed now as part of bug 4885. From what I can find only dynamically created stuff is left around, and that is covered by bug 3666.

Used this to check things:

> $ sudo find /opt/thinlinc/ | sudo xargs rpm -qf | sort | uniq
Comment 3 William Sjöblom cendio 2022-03-14 15:52:43 CET
Tested on RHEL8.

Reproduced installing 4.14.0 server and then removing it using `dnf
remove thinlinc-*'. After the removal, roughly the same directories as
in comment 0 remained.

I then removed these remnant files by `rm -fr /opt/thinlinc/', followed
by installing server build #2506. After removing it using ``dnf remove
thinlinc-server' all files were gone except for a couple of rpmsave files 
(which are expected) along with the `.upgrade.stamp' which falls under 
bug 3666.

I also had a look at the new tests along with checking the file/dir
ownerships of the installed tree and things look fine and dandy.

Marking as closed!

Note You need to log in before you can comment on or make changes to this bug.