Re: problem searching packages
On Sat, 2007-02-10 at 14:35 +0100, Gilles Mocellin wrote: Le jeudi 8 février 2007 23:56, Mathias Brodala a écrit : Hello Nelson. Nelson Castillo, 08.02.2007 23:52: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename Or just: $ dpkg -l packagename And if we don't know exactly the name : $ dpkg -l packagenam* Don't the both of you mean?: $ dpkg -s packagename / packagenam* / | grep packagename dpkg with the -l option just lists some information about the package, but unless I'm missing something, it doesn't actually indicate whether you have the package installed on your system. From the man page: dpkg -l | --list package-name-pattern ... List packages matching given pattern. dpkg -s | --status package-name ... Report status of specified package. -- Michael M. ++ Portland, OR ++ USA No live organism can continue for long to exist sanely under conditions of absolute reality; even larks and katydids are supposed, by some, to dream. --S. Jackson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
On Fri, 2007-02-23 at 06:51 -0800, Michael M. wrote: On Sat, 2007-02-10 at 14:35 +0100, Gilles Mocellin wrote: Le jeudi 8 février 2007 23:56, Mathias Brodala a écrit : Hello Nelson. Nelson Castillo, 08.02.2007 23:52: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename Or just: $ dpkg -l packagename And if we don't know exactly the name : $ dpkg -l packagenam* Don't the both of you mean?: $ dpkg -s packagename / packagenam* / | grep packagename dpkg with the -l option just lists some information about the package, but unless I'm missing something, it doesn't actually indicate whether you have the package installed on your system. [EMAIL PROTECTED]:/tmp$ dpkg -l evolution Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=-=-== ii evolution 2.0.4-2sarge1 The groupware suite err... doesn't that tell me it's installed? From the man page: dpkg -l | --list package-name-pattern ... List packages matching given pattern. dpkg -s | --status package-name ... Report status of specified package. -- Michael M. ++ Portland, OR ++ USA No live organism can continue for long to exist sanely under conditions of absolute reality; even larks and katydids are supposed, by some, to dream. --S. Jackson
Re: problem searching packages
On Fri, 2007-02-23 at 06:51 -0800, Michael M. wrote: On Sat, 2007-02-10 at 14:35 +0100, Gilles Mocellin wrote: Le jeudi 8 février 2007 23:56, Mathias Brodala a écrit : Hello Nelson. Nelson Castillo, 08.02.2007 23:52: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename Or just: $ dpkg -l packagename And if we don't know exactly the name : $ dpkg -l packagenam* Don't the both of you mean?: $ dpkg -s packagename / packagenam* / | grep packagename dpkg with the -l option just lists some information about the package, but unless I'm missing something, it doesn't actually indicate whether you have the package installed on your system. From the man page: dpkg -l | --list package-name-pattern ... List packages matching given pattern. dpkg -s | --status package-name ... Report status of specified package. Oh now I see! It does indicate the status of the package, just somewhat cryptically: ii, un, etc. -- Michael M. ++ Portland, OR ++ USA No live organism can continue for long to exist sanely under conditions of absolute reality; even larks and katydids are supposed, by some, to dream. --S. Jackson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
Le vendredi 23 février 2007 16:02, Michael M. a écrit : [...] Oh now I see! It does indicate the status of the package, just somewhat cryptically: ii, un, etc. Yes ;-) Not obvious if no-one said it to you ! In fact, if dpkg has nether see the package (previously installed, remove or purge), dpkg -l doesn't show you anything. Example : [EMAIL PROTECTED]:~$ dpkg -l openoffice.org-hyphenation-de Aucun paquet ne correspond à openoffice.org-hyphenation-de. The package exist : [EMAIL PROTECTED]:~$ aptitude search openoffice.org-hyphenation-de p openoffice.org-hyphenation-de - German hyphenation patterns for OpenOffice.org [EMAIL PROTECTED]:~$ sudo aptitude install openoffice.org-hyphenation-de Lecture des listes de paquets... Fait [...] [EMAIL PROTECTED]:~$ dpkg -l openoffice.org-hyphenation-de Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé |/ Err?=(aucune)/H=à garder/besoin Réinstallation/X=les deux (État,Err: majuscule=mauvais) ||/ Nom Version Description +++-=-=-== ii openoffice.org-hyphen 2.0.4~rc1-3 German hyphenation patterns for OpenOffice.org Here we see it. I purge it. [EMAIL PROTECTED]:~$ sudo aptitude purge openoffice.org-hyphenation-de Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait [...] [EMAIL PROTECTED]:~$ dpkg -l openoffice.org-hyphenation-de Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé |/ Err?=(aucune)/H=à garder/besoin Réinstallation/X=les deux (État,Err: majuscule=mauvais) ||/ Nom Version Description +++-=-=-== pn openoffice.org-hyphen néant (aucune description n'est disponible) Now, dpkg knows the package, and knows that it is purged. pgpihEcMSCdmb.pgp Description: PGP signature
Re: problem searching packages
Le jeudi 8 février 2007 23:56, Mathias Brodala a écrit : Hello Nelson. Nelson Castillo, 08.02.2007 23:52: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename Or just: $ dpkg -l packagename And if we don't know exactly the name : $ dpkg -l packagenam* pgpxLFyYBD5xk.pgp Description: PGP signature
Re: problem searching packages
Hello and welcome Bernard! On Thu, Feb 08, 2007 at 11:49:55PM +0100, Bernard wrote: [...] #apt-cache search hplip lists a number of related packages that, I think, are supposed de operate together... but this does not tell me whether hplip is installed or not in my system. I think it is not installed, since [...] This is because apt-cache search also includes package descriptions. So every package containing hplip in its name and/or description will be shown. This does not always mean, that the package is related. It could also mean that one package is a drop in replacement. OK that is a relation in the wider sense ;). [...] #man hplip tells me that there is no manual entry for hplip. In fact, hplip has been in turn installed, removed, re-installed and re-removed on my system, so it should not be there at this time, except if I got mixed up somewhere. I can't remember what hplip version I had, and I don't plan to reinstall blindly as I had done before. [...] If the package is not installed then there is no man page. [...] #dpkg -I hplip I get : dpkg-deb: unable to read the archive hplip, no file or directory of this type. [...] The option -I requests a filename not a package name. You can find those files in /var/cache/apt/archives/. But read on, there are easier ways to get the info you want. Also /var/cache/apt/archives will only contain .deb's of packages that have already been downloaded for installation. [...] My first question will be : How to check whether hplip (or any other package) is installed on my system or not ? [...] As often there are more than one ways to achieve this: $ dpkg --status package name (note: here it has to be the package name and not the file name) My prefered method is: $ aptitude show package name This gives you a list of all information reagarding the package: status, description, version number etc. [...] The second question : how to investigate what packages are installed in my system, with all informations (package name, version etc...) [...] Opposed to some other replies I have to say that dpkg -l (or --list) does *not* show installed packages only. It also shows you packages which have already been removed but their respective configuration remained. But one can filter those out: $ dpkg -l | grep ^ii | less But this method lacks some informations you asked for. Again my preference lies on aptitude: $ aptitude show ~i | less This will show the same list as the above $ aptitude show package name for all installed packages. If you like to use graphical tools, then you can use the interactive mode of aptitude (aptitude called with no arguments) on the console, or you can give Synaptic a try as it was already suggested. Some useful documentation can be found here: man 1 dpkg man 8 aptitude /usr/share/doc/aptitude/html/en/index.html (found in the package aptitude-doc-en) Regards -- Marcus Blumhagen Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction. -- Albert Einstein signature.asc Description: Digital signature
Re: problem searching packages
On Thu, 8 Feb 2007 17:52:52 -0500 Nelson Castillo [EMAIL PROTECTED] wrote: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename The second question : how to investigate what packages are installed in my system, with all informations (package name, version etc...) dpkg -l :) dpkg -l hplip* . If you know the exact name of the package, dpkg -s hplip . Celejar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
Bernard wrote: Thanks in advance for any useful input I think your question has been answered in more than one way, demonstrating the flexibility of debian. One more suggestion/advice: I like to use aptitude just as it is. Just run 'aptitude' without arguments. You will get a nice visual interface. '?' without the quotes gives a short help indes, other functions are available through a menu. '/' starts a search field. etc. Explore yourself. Yours to discover ;=) HTH, Johannes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
On Fri, Feb 09, 2007 at 10:09:53AM -0500, Celejar wrote: dpkg -l hplip* . If you know the exact name of the package, dpkg -s hplip . dpkg -l hplip* is better. If you happen to have any filenames starting with hplip, the shell will insert them as it resolves the glob. Regards, -Roberto -- Roberto C. Sanchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
problem searching packages
Hi there ! Newcomer on Debian (former user of RedHat 7.2), I find the Debian packages kind of hard to manage. With RedHat rpm, I could find very easily whether a package was installed or not, what was the version number etc.. With Debian, I have not yet found the way to go ; I suppose that I should read a greater number of pages, but there is so much doc that it is not easy to find the right one right away. #apt-cache search package_name gives me some information on said package, but not the version number. In fact, I suspect that this command does not read in my local base, but in the distant servers, so that I don't know if a given package is being installed on my system or not. For instance : #apt-cache search hplip lists a number of related packages that, I think, are supposed de operate together... but this does not tell me whether hplip is installed or not in my system. I think it is not installed, since #man hplip tells me that there is no manual entry for hplip. In fact, hplip has been in turn installed, removed, re-installed and re-removed on my system, so it should not be there at this time, except if I got mixed up somewhere. I can't remember what hplip version I had, and I don't plan to reinstall blindly as I had done before. Now, if I try #dpkg -I hplip I get : dpkg-deb: unable to read the archive hplip, no file or directory of this type. But, if I try the same command with cups or gimp as arguments, I get the same kind of answers, despites that cups and gimp are properly installed. I imagine that I should write, as an argument, not a guessed package name such as 'gimp', but a real package name with a version number and .deb in the end... but where am I to find such information on debian packages ? My first question will be : How to check whether hplip (or any other package) is installed on my system or not ? The second question : how to investigate what packages are installed in my system, with all informations (package name, version etc...) Thanks in advance for any useful input -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename The second question : how to investigate what packages are installed in my system, with all informations (package name, version etc...) dpkg -l :) There are graphical frontends, if you prefer those. Look for synaptic. Regards. -- http://arhuaco.org http://emQbit.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
Hello Nelson. Nelson Castillo, 08.02.2007 23:52: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename Or just: $ dpkg -l packagename Regards, Mathias -- debian/rules signature.asc Description: OpenPGP digital signature
Re: problem searching packages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/08/07 16:56, Mathias Brodala wrote: Hello Nelson. Nelson Castillo, 08.02.2007 23:52: How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l | grep packagename Or just: $ dpkg -l packagename Or: $ apt-cache policy packagename -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFy64nS9HxQb37XmcRAt3EAJ9OYTaczHPTFN8fgbu5nJEIHTO0MACgnPdz qCz5jjeRQQBPu4YWYmE5XZU= =0HTs -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problem searching packages
On Thu, 2007-02-08 at 23:49 +0100, Bernard wrote: Hi there ! Newcomer on Debian (former user of RedHat 7.2), I find the Debian packages kind of hard to manage. With RedHat rpm, I could find very easily whether a package was installed or not, what was the version number etc.. With Debian, I have not yet found the way to go ; I suppose that I should read a greater number of pages, but there is so much doc that it is not easy to find the right one right away. #apt-cache search package_name gives me some information on said package, but not the version number. In fact, I suspect that this command does not read in my local base, but in the distant servers, so that I don't know if a given package is being installed on my system or not. For instance : #apt-cache search hplip This will give you info on the package before it is even installed: apt-cache show hplip My first question will be : How to check whether hplip (or any other package) is installed on my system or not ? dpkg -l hplip The second question : how to investigate what packages are installed in my system, with all informations (package name, version etc...) dpkg -l packagename Or if you want to see what is installed period (from the command line) dpkg -l | less If you want to list the files installed: dpkg -L packagename for pretty GUI stuff: synaptic Cheers. -- [EMAIL PROTECTED] Novell's Directory Services is a competitive product to Microsoft's Active Directory in much the same way that the Saturn V is a competitive product to those dinky little model rockets that kids light off down at the playfield. -- Thane Walkup signature.asc Description: This is a digitally signed message part
Re: problem searching packages
Bernard wrote: With RedHat rpm, I could find very easily whether a package was installed or not, what was the version number etc.. With Debian, I have not yet found the way to go [...] #apt-cache search package_name gives me some information on said package, but not the version number. I haven't seen anyone mention this yet: dpkg --status packagename A couple more lines worth noting: apt-cache search --names-only pattern apt-cache show package Tim -- [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]