LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-10-2019, 11:35 AM   #1
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Rep: Reputation: 12
dpkg --list ?


When I run "dpkg --list" I get
...
ii bluez 5.37-0ubuntu amd64 Bluetooth tools and daemons
...

bnut when I do
dpkg --list b* I get this

dpkg-query: no packages found matching bluez-5.18
dpkg-query: no packages found matching bluez-5.18.tar.xz
jim@jim-desktop:~$

Why the difference ?
 
Old 03-10-2019, 12:28 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by AnneRanch View Post
When I run "dpkg --list" I get
...
ii bluez 5.37-0ubuntu amd64 Bluetooth tools and daemons
...

bnut when I do
dpkg --list b* I get this

dpkg-query: no packages found matching bluez-5.18
dpkg-query: no packages found matching bluez-5.18.tar.xz
jim@jim-desktop:~$

Why the difference ?
It's because you are currently in a directory with those two files in it when you issue the command. The * is being interpreted as a blob by the command interpreter.

To ensure that the * is interpreted by dpkg, not by the command interpreter, use:

Code:
dpkg --list "b*"
Note also that -l can be used as a synonym of --list.
 
Old 03-10-2019, 12:50 PM   #3
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
Thanks.
I purged "bluez" and now I am getting this


jim@jim-desktop:~$ dpkg -l "blue*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description

un bluez <none> <none> (no description available)
un bluez-alsa <none> <none> (no description available)
un bluez-gnome <none> <none> (no description available)
un bluez-obexd <none> <none> (no description available)
un bluez-pan <none> <none> (no description available)
jim@jim-desktop:~$

Why is that ?

Last edited by AnneRanch; 03-10-2019 at 03:07 PM.
 
Old 03-10-2019, 01:24 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Please edit your post above and either (i) remove the equals signs or, preferably, (ii) place your output within CODE brackets (see https://www.linuxquestions.org/quest...og.php?b=36313) so that we can get the width of this thread back to normality. Thanks.
 
Old 03-10-2019, 01:29 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
why is what? you told you purged probably that's why
 
Old 03-10-2019, 03:09 PM   #6
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
Whys does it report package which is no longer there ?
 
Old 03-10-2019, 03:18 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by AnneRanch View Post
Whys does it report package which is no longer there ?
Thanks for editing your post.

Good question. It could well be that dpkg lists all packages of which it is aware. If a package is included as a relation to an installed packaged (Depends, Recommends, Suggests etc.), then it is listed as "un" i.e. uninstalled so that the user is aware it exists. I have no idea. However essentially, and practically, you can ignore packages that are marked as "un".
 
Old 03-10-2019, 03:19 PM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
https://askubuntu.com/questions/1880...ike-ii-rc-mean
it is known, but not installed
 
Old 03-10-2019, 10:38 PM   #9
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
Not sure I am "happy / solved" with answers such "could well" "probably" .
I need to make sure the package "bluez" does not exist.
If "purge" means "it is there , but not installed" I need to find different command to make sure there is no blueZ.
 
Old 03-11-2019, 02:11 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
for me it is definitely ok (based on the link I posted): u means unknown, n means not installed. What else do you need?
You have installed those packages, therefore the name of those packages are stored, but that's all.
 
Old 03-11-2019, 05:15 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by AnneRanch View Post
Not sure I am "happy / solved" with answers such "could well" "probably" .
I need to make sure the package "bluez" does not exist.
If "purge" means "it is there , but not installed" I need to find different command to make sure there is no blueZ.
The package bluez isn't installed on your computer any more. Definitely. Happier now?

Seriously, if you are unwilling to take the advice of people on here then you may as well not ask any questions.
 
Old 03-11-2019, 09:36 AM   #12
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
I would have tried something like
Code:
dpkg --list | grep -i bluez
 
Old 03-11-2019, 09:56 AM   #13
AnneRanch
Member
 
Registered: Oct 2018
Posts: 198

Original Poster
Rep: Reputation: 12
JeremyBoden

Thanks for the reply.
It helps to gain better understanding of relation between bluez and libbluetooth-dev,
appreciate that.

Can I ask what "Desired" (comment ) means?

I'll try to answer my own question , as soon as I finish this post, if it is too difficult for this forum to help without being so snooty about it.

Have a great day.


jim@jim-desktop:~$ dpkg --list | grep -i bluez
ii libbluetooth-dev 5.37-0ubuntu5.1 amd64 Development files for using the BlueZ Linux Bluetooth library
ii libbluetooth3:amd64 5.37-0ubuntu5.1 amd64 Library to use the BlueZ Linux Bluetooth stack
ii libbluetooth3:i386 5.37-0ubuntu5.1 i386 Library to use the BlueZ Linux Bluetooth stack
ii libbluetooth3-dbg 5.37-0ubuntu5.1 amd64 Library to use the BlueZ Linux Bluetooth stack with debugging symbols
jim@jim-desktop:~$ dpkg --list "blue*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description

+++-(part of text deleted )

un bluez <none> <none> (no description available)
un bluez-alsa <none> <none> (no description available)
un bluez-gnome <none> <none> (no description available)
un bluez-obexd <none> <none> (no description available)
un bluez-pan <none> <none> (no description available)
jim@jim-desktop:~$

Last edited by AnneRanch; 03-11-2019 at 09:57 AM.
 
Old 03-11-2019, 10:09 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by AnneRanch View Post
I'll try to answer my own question , as soon as I finish this post, if it is too difficult for this forum to help without being so snooty about it.
You are a poster who won't take advice from people who know what they're talking about. You are a poster who didn't mark any of the replies on this thread as helpful, despite the fact that they were. You are a poster who took the phrase "could well be" out of context to mean that bluez was perhaps not uninstalled when in fact it was merely used to indicate a probable reason that dpkg keeps track of some packages that aren't actually installed.

And to rub it in, now you are calling us snooty?

Perhaps you should employ a personal help desk support person rather than using Linux Questions. We are not your help desk. We are a group of volunteers who use our free time to try and help Linux users who need help. The very least we should be able to expect in return is some respect and some effort to listen to our answers and take them on board.

This thread is solved. Your original question has been answered.
 
1 members found this post helpful.
Old 03-11-2019, 10:13 AM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
For anyone else reading this thread in the future, if you run
Code:
dpkg -l
with no parameters, then uninstalled packages (those marked by dpkg as "un") are not shown.

If on the other hand, you run e.g.

Code:
dpkg -l "*libre*"
with a filter parameter then uninstalled packages are included in the output.
 
1 members found this post helpful.
  


Reply

Tags
bluez



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
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
dpkg: dpkg - error: PATH is not set basis1980 Linux - Software 1 12-07-2007 04:53 PM

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

All times are GMT -5. The time now is 02:01 AM.

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