LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2022, 07:39 PM   #16
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102

Quote:
Originally Posted by evo2 View Post
Debian 11 is stable, not unstable. Debian unstable does not have a version number. How did you install fslint?

Evo2.
Sorry, that was a typo. I am on Debian Unstable. I installed fslint using the following command:

Code:
apt-get install fslint
 
Old 06-01-2022, 08:53 PM   #17
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by suramya View Post
Sorry, that was a typo. I am on Debian Unstable. I installed fslint using the following command:

Code:
apt-get install fslint
Ok, but it hasn't been in Debian since Debian 10 (now oldstable). I guess you must have old or third party repositories configured. The output of the following should explain it:
Code:
apt-cache policy fslint
Cheers,

Evo2.
 
Old 06-02-2022, 12:50 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
There is an interesting alternative, do not remove the duplicates, but hard link to each other. Useful if you don't know which one is important or you need them in every directory. Works only on a single filesystem.
 
Old 06-02-2022, 07:46 AM   #19
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by evo2 View Post
Hi,

Ok, but it hasn't been in Debian since Debian 10 (now oldstable). I guess you must have old or third party repositories configured. The output of the following should explain it:
Code:
apt-cache policy fslint
Cheers,

Evo2.
Interesting. I don't think I have it configured for old repositories. Below is what my sources.list has along with the result from the command you recommended:

Code:
root@StarKnight:~# apt-cache policy fslint
fslint:
  Installed: 2.46-1
  Candidate: 2.46-1
  Version table:
 *** 2.46-1 100
        100 /var/lib/dpkg/status
root@StarKnight:~# cat /etc/apt/sources.list
# Debian packages for unstable
#deb http://mirror.0x.sg/debian/ testing main contrib non-free
deb http://mirrors.kernel.org/debian/ unstable main non-free contrib
root@StarKnight:~#
I first installed it back in 2014 and have never removed it after that. But have been constantly upgrading the system. I think that is why I still have the package even though it is no longer available in the repository.

Code:
root@StarKnight:/etc/apt/sources.list.d# apt-cache showpkg  fslint
Package: fslint
Versions: 
2.46-1 (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/dpkg/status
                  MD5: 4b58d63667576a6e98df13a69973c798


Reverse Depends: 
  unburden-home-dir,fslint
Dependencies: 
2.46-1 - findutils (2 4.1.1) python (2 2.6) python-glade2 (0 (null)) python-gtk2 (2 2.4) 
Provides: 
2.46-1 - 
Reverse Provides:
This should have shown me the repository path and other details about the package and from where it was installed. So it looks like it is no longer there.
 
Old 06-02-2022, 06:09 PM   #20
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by suramya View Post
This should have shown me the repository path and other details about the package and from where it was installed. So it looks like it is no longer there.
Yeah, seems you installed it before it was booted from Debian :-)

If you still have that on your system, you've probably got a bunch of other old, obsolete stuff lurking around. Might want to look into cleaning it up.

Cheers,

Evo2.
 
Old 06-02-2022, 07:05 PM   #21
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by evo2 View Post
Yeah, seems you installed it before it was booted from Debian :-)

If you still have that on your system, you've probably got a bunch of other old, obsolete stuff lurking around. Might want to look into cleaning it up.

Cheers,

Evo2.
Yup. That sounds like a smart idea. Any suggestions on how to find the old stuff? One option I can think of is to get a list of all the packages installed and run the apt-cache showpkg command on each of them. If the result is blank for the repository location etc then it would indicate an obsolete package. Is there a better/simpler way to do this?
 
Old 06-02-2022, 08:29 PM   #22
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by suramya View Post
Yup. That sounds like a smart idea. Any suggestions on how to find the old stuff? One option I can think of is to get a list of all the packages installed and run the apt-cache showpkg command on each of them. If the result is blank for the repository location etc then it would indicate an obsolete package. Is there a better/simpler way to do this?
The Debian release notes has a section on this, since they recommend removing such packages before upgrading from one version of Debian to the next. Eg have a look at:

https://www.debian.org/releases/bull...#system-status

Cheers,

Evo2.
 
Old 06-03-2022, 04:51 AM   #23
naps
Member
 
Registered: Aug 2003
Distribution: 10.3
Posts: 55

Rep: Reputation: 16
Quote:
Originally Posted by suramya View Post
Another option is to use fslint. It is a fantastic program that finds duplicates and allows you to delete/rename them if required. It has both GUI and command line modes but I have only used the GUI mode
Going down the route of apps I have moved to czkawka; an online search takes you to Polish websites but the homepage is https://GitHub.com/qarmin/czkawka . The latest release of 24th April has a feature to find files with the wrong extension. One feature came out after I installed it allows you to choose a folder as containing the originals so they don’t get deleted.
It can be installed in Debian although I don’t think it is in their repositories.
 
Old 06-03-2022, 11:33 AM   #24
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by evo2 View Post
Hi,

The Debian release notes has a section on this, since they recommend removing such packages before upgrading from one version of Debian to the next. Eg have a look at:

https://www.debian.org/releases/bull...#system-status

Cheers,

Evo2.
Cool, thanks. This is very useful.
Will try this out once I have some time and a lot of sleep to ensure I don't remove stuff that I might need.
 
  


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
removing duplicate files herakles_14 Ubuntu 9 08-19-2013 10:11 AM
Shell script to concatinate two text files and removing the duplicate entries punky Programming 13 06-17-2012 08:30 PM
File Mgmt. Removing duplicate files. heimbichner Linux - General 3 12-29-2011 10:11 PM
does tar or bzip2 squash duplicate or near-duplicate files? garydale Linux - Software 6 11-19-2009 04:43 PM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 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