LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-22-2005, 08:17 PM   #1
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
removepkg: WARNING: Unique directory contains new files


If I remove a package with 'removepkg', the files from certain directories are removed without warnings. But a few directories give the warning:

'WARNING: Unique directory /usr/share/man/man6/ contains new files'

I'm sure al those files in man6 where already there before the installation of the package now being removed. How come this warning is shown then?
 
Old 06-22-2005, 08:32 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
What it really means is that there's files in that particular directory that weren't installed by the package, and as a result, it's not going to remove the directory.

It's a nothing error.
 
Old 06-23-2005, 04:52 AM   #3
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Yes, ok. But when I install this package it also writes files to, for example, /usr/bin . There are also other files there, still this warning is not displayed there. It's not a big deal, just curious.
 
Old 06-23-2005, 05:48 AM   #4
zord
Member
 
Registered: Feb 2005
Distribution: slack 10
Posts: 50

Rep: Reputation: 15
The difference is whether something is put in some existing directory, e.g. a link in /usr/local/bin/, or if the whole directory was created by the package (like /usr/local/appname/ ).
In the first case the files are deleted. In the second case, it want's to delete the whole directory.
 
Old 06-23-2005, 06:02 AM   #5
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Yes, that's what I thought.
But the directory here, /usr/share/man/man6 , already exists when the new package was installed. That's the reason why it puzzles me.
 
Old 06-23-2005, 06:57 AM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
The package likely included a create directive for /usr/share/man/man6, so that the directory would be created if it wasn't already there. If such an instruction isn't there, then the files for that directory likely wouldn't be copied.

The difference between that directory and something like /usr/bin is that /usr/bin is created by one of the aaa packages and it's impossible not to have it.
 
Old 06-23-2005, 07:01 AM   #7
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Ah, yes, I see.
Stille a question about this topic: if I remove this package, and I get this warning,
then I should check /var/log/packages?
Do a grep or similar to see if the files that are new, are from another package or generated by the application that was removed?
 
Old 06-23-2005, 07:05 AM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,454

Rep: Reputation: 96
As the directory is a man directory in this case,
I think ls /usr/share/man/man6 will give you
a hint about what software install bring these
man pages, also section 6 of man is the game
man page section
 
Old 06-23-2005, 07:07 AM   #9
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Yes, indeed, it are just other man pages for other installed games.
But my last question was meant: in general?
 
Old 06-23-2005, 07:09 AM   #10
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,454

Rep: Reputation: 96
In general, I would list the directory files and then
grep the files name in /var/log/packages

(if the new files were not added/modified by myself)
 
Old 06-23-2005, 08:51 AM   #11
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Ok, thanks for all the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autozipping files from 1 directory & dropping them in other directory ??? amitsharma_26 Linux - Networking 5 10-22-2005 06:09 AM
copying files and give new unique names to each file by using xargs command gnim66 Programming 6 06-22-2005 08:29 PM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 06:05 AM
Hidden files warning Chiel Linux - Security 3 11-15-2004 12:28 PM


All times are GMT -5. The time now is 11:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration