LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-22-2024, 11:09 AM   #16
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697

Yes, that did the trick. Slightly modified to make shellcheck happy:

Code:
#!/bin/sh
# obsolete_new: find obsolete .new files
# pk 2024-01-17 2024-01-20 2024-01-22
cd /var/log/removed_packages || exit
find . -type f -exec grep -h '\.new$' '{}' +|sort -u|\
while read -r fnew; do
  cd /var/log/packages || exit
  f=${fnew%.new}
  if ! find . -type f -exec grep -q -e "^$fnew$" -e "^$f$" '{}' +; then
    [ -f "/$f" ] && [ ! -L "/$f" ] && echo "/$f"
  fi
done
 
1 members found this post helpful.
Old 02-03-2024, 09:53 PM   #17
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,076

Rep: Reputation: 152Reputation: 152
I've seen different versions of obsolete_new and some started getting errors. Where's the newest version? Could you submit this to Slackware?

Last edited by dchmelik; 02-03-2024 at 10:01 PM.
 
Old 02-04-2024, 04:02 AM   #18
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,942

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
Quote:
Originally Posted by dchmelik View Post
I've seen different versions of obsolete_new and some started getting errors.
What errors? I have used the script of post #15 and it has worked for me. Just ran it and found a couple of obsolete files from the previous pam package. The script in post #16 should also work.
 
Old 02-08-2024, 06:32 AM   #19
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 624

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
After updating PAM in Slackware64-current to version 1.6.0 (from January 26, 2024), the files:
/etc/security/console.handlers
/etc/security/console.perms
are missing in package.
I don't know if they existed in version 1.5.3, but in Slackware64-15.0 version 1.5.2 they exist.
Can they be deleted safely or not?

Last edited by teoberi; 02-08-2024 at 06:47 AM.
 
Old 02-08-2024, 06:59 AM   #20
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,942

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
Quote:
Originally Posted by teoberi View Post
/etc/security/console.handlers
/etc/security/console.perms

Can they be deleted safely or not?
Yes.
 
1 members found this post helpful.
  


Reply



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
sudo cp -rp ./mysqld ./mysqld.bak cp: cannot stat './mysqld': No such file or directory 5huvoo Linux - Server 5 03-06-2018 02:10 PM
[SOLVED] after installation of MySQL could not log into mysql using temporary password in /var/log/mysqld.log User247 Linux - Server 2 12-25-2017 09:31 AM
mysqld from pid file /var/run/mysqld/mysqld.pid ended gabsik Linux - Server 3 12-11-2016 10:15 AM
Problem with MySQL install on virt CentOS,no /var/lib/mysql/mysql.sock , systemctl start mysqld.service dont run the service Positive1 CentOS 1 08-13-2016 03:33 AM
[SOLVED] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' Burningmace Linux - Server 5 09-06-2012 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration