LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-06-2022, 08:35 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 639

Rep: Reputation: 34
Question List files in uninstalled packages?


Hello,

Before possibly installing them, I need to check what files are provided by php-5.6 and php-5.6-fpm.

Apparently, older packages are removed at some point from the official Debian repo, so I tried Ondrej Surư's… but no go:

Code:
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/nginx-mainline

apt-get update
apt-file update

EMPTY apt-file list php5.6
EMPTY 5.6 apt-cache search php | grep php-
EMPTY apt-cache search php | grep 5.6
What's the right way to find what files are provided by an uninstalled package?

Thank you.

--
Edit:
Code:
~# apt-get install --dry-run php5.6 php5.6-fpm
E: Unable to locate package php5.6-fpm
E: Couldn't find any package by glob 'php5.6-fpm'
E: Couldn't find any package by regex 'php5.6-fpm'

~#apt-cache policy php5.6

php5.6-json:
  Installed: (none)
  Candidate: (none)
  Version table:
php5.6-common:
  Installed: (none)
  Candidate: (none)
  Version table:


~# grep ^[^#] /etc/apt/sources.list /etc/apt/sources.list.d/*
/etc/apt/sources.list:deb http://ftp.fr.debian.org/debian/ bullseye main
/etc/apt/sources.list:deb-src http://ftp.fr.debian.org/debian/ bullseye main
/etc/apt/sources.list:deb http://security.debian.org/ bullseye-security main
/etc/apt/sources.list:deb-src http://security.debian.org/ bullseye-security main
/etc/apt/sources.list:deb http://ftp.fr.debian.org/debian/ bullseye-updates main
/etc/apt/sources.list:deb-src http://ftp.fr.debian.org/debian/ bullseye-updates main
/etc/apt/sources.list:deb http://httpredir.debian.org/debian/ bullseye main contrib non-free
/etc/apt/sources.list.d/ondrej-ubuntu-nginx-mainline-kinetic.list:deb http://ppa.launchpad.net/ondrej/nginx-mainline/ubuntu kinetic main
/etc/apt/sources.list.d/ondrej-ubuntu-php-kinetic.list:deb http://ppa.launchpad.net/ondrej/php/ubuntu kinetic main
/etc/apt/sources.list.d/ondrej-ubuntu-php-kinetic.list.save:deb http://ppa.launchpad.net/ondrej/php/ubuntu kinetic main

~# hostnamectl

Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-18-amd64
Architecture: x86-64

Last edited by littlebigman; 10-06-2022 at 09:12 AM.
 
Old 10-06-2022, 09:31 AM   #2
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 639

Original Poster
Rep: Reputation: 34
This did it to list packages(with some warnings I'll look into later):

Code:
apt install software-properties-common ca-certificates lsb-release apt-transport-https
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' 
wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - 

apt-get update
apt-file update
apt-cache search php | grep 5.6
Still no way to know what files are in an uninstalled package.

Last edited by littlebigman; 10-06-2022 at 09:34 AM.
 
Old 10-06-2022, 09:40 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 639

Original Poster
Rep: Reputation: 34
Found it:

Code:
~# apt-get download php5.6
~# dpkg -c php5.6_5.6.40-63+0~20220929.69+debian11~1.gbp639d4c_all.deb
drwxr-xr-x root/root         0 2022-09-30 00:13 ./usr/
drwxr-xr-x root/root         0 2022-09-30 00:13 ./usr/share/
drwxr-xr-x root/root         0 2022-09-30 00:13 ./usr/share/bug/
drwxr-xr-x root/root         0 2022-09-30 00:13 ./usr/share/bug/php5.6/
-rw-r--r-- root/root        25 2022-09-30 00:13 ./usr/share/bug/php5.6/control
drwxr-xr-x root/root         0 2022-09-30 00:13 ./usr/share/doc/
drwxr-xr-x root/root         0 2022-09-30 00:13 ./usr/share/doc/php5.6/
-rw-r--r-- root/root       480 2022-09-18 14:52 ./usr/share/doc/php5.6/NEWS.Debian.gz
-rw-r--r-- root/root     82584 2022-09-30 00:13 ./usr/share/doc/php5.6/changelog.Debian.gz
-rw-r--r-- root/root    178252 2022-09-30 00:13 ./usr/share/doc/php5.6/changelog.gz
-rw-r--r-- root/root     21026 2022-09-18 14:52 ./usr/share/doc/php5.6/copyright
Strangely enough, the PHP5.6 package contains no binaries… but that's for another forum.

HTH,
 
  


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
List all available (uninstalled) packages gallard Linux - General 8 05-31-2013 12:59 PM
[SOLVED] [Debian/Ubuntu] List files in uninstalled package? littlebigman Linux - Software 1 03-17-2011 06:28 AM
Problem with packages - local list doesn't list all packages from a mirror simopal6 Debian 2 09-01-2008 05:44 AM
Uninstalled too many packages, but don't know what to put back qscomputing Linux - General 2 03-31-2006 10:54 PM
no uninstalled packages in my rpmdatabase, using apt... Mayco Fedora 0 12-14-2004 09:45 AM

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

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