Re: apt / aptitude question
David Guntner dav...@akamail.net wrote: Thanks to both you and Neal for the replies. Interesting to see the multiple ways of getting the same information. :-) They do different things and (for me anyway) give different results. Consider the package cltl that I do not have installed: $ apt-file search cltl# Search repositories cltl: /etc/emacs/site-start.d/60cltl.el cltl: /usr/share/doc-base/cltl cltl: /usr/share/doc/cltl/README.Debian cltl: /usr/share/doc/cltl/changelog.gz cltl: /usr/share/doc/cltl/copyright ...[other results]... $ apt-file search 60cltl.el# Search repositories cltl: /etc/emacs/site-start.d/60cltl.el $ dpkg-query -S cltl# Search installed packages dpkg: *cltl* not found. $ dpkg-query -S 60cltl.el# Search installed packages dpkg: *60cltl.el* not found. Chris -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/0dq9n9xs0b@news.roaima.co.uk
apt / aptitude question
Hello, Mandriva refugee here. :-) New to Debian, but have been using some form of *NIX since 1986. Have been a happy Mandriva user since the Mandrake 7 days, but that new company that purchased it, resulting in them losing most of their talent, has finally caused me to leave; the last update to the OS (which was the first under the new regime) left me with a system that barely runs. So I looked around and decided that Debian might be a good distro for me to use (plus, my webhosting provider is using Debian on their servers; I decided it might be nice to not have to change mental gears when I ssh into my vps :-) ). I've been working on figuring out the various quirks and differences between the two and Google Has Been My Friend in this a lot. :-) Even managed to find a reference to using an Ubuntu source to install Freenx from the .deb packages that they provide since for some reason Debian doesn't (so that's something I won't have to do without - yay!). However, I've had no luck finding any useful information on this one particular item; maybe I'm just not wording the search correctly. I'm hoping someone here can give me a hand. In Mandriva, they use a wrapper to rpm called urpm{x} (where {x} represents an action that you want to do i for install, e for erase, etc.). There are options that allow you to see what files are related to packages, whether they are installed in the system or not. There are two in particular that I'd like to have happen here. In Mandriva if I enter: urpmq -i {somepackage} I will get an output that's pretty similar to what I get if I enter: aptitude show {somepackage} in Debian. So far, so good. However, on the Mandriva side, if I enter: urpmq -fi {somepackage} I'll get the package information *and* a listing of all files provided by that package. I can't seem to figure out (or find out) how to do that same thing in Debian. Is there a way? And if so, how to do it? As to the second variation on this theme, under Mandriva, if I enter: urpmf {somefilename} It will spit back a list of all packages that provide that filename or any part of it. It's treated like a substring - for example if I type urpmf kross it will list the package that provides /usr/bin/kross, and will then go on to show other packages that have that string in it like /usr/lib64/libkokross.so.7 and so on. This can be controlled by entering something like urpmf /usr/bin/kcross, though other things in /usr/bin that start with kcross will also show up. I haven't figured or found out yet how to get that kind of search functionality within Debian. So as above, is there a way to do this, and if so, how? Thanks for any help! --Dave signature.asc Description: OpenPGP digital signature
Re: apt / aptitude question
On Sunday, November 11, 2012 04:59:34 PM David Guntner wrote: Hello, Mandriva refugee here. :-) New to Debian, but have been using some form of *NIX since 1986. Have been a happy Mandriva user since the Mandrake 7 days, but that new company that purchased it, resulting in them losing most of their talent, has finally caused me to leave; the last update to the OS (which was the first under the new regime) left me with a system that barely runs. So I looked around and decided that Debian might be a good distro for me to use (plus, my webhosting provider is using Debian on their servers; I decided it might be nice to not have to change mental gears when I ssh into my vps :-) ). I've been working on figuring out the various quirks and differences between the two and Google Has Been My Friend in this a lot. :-) Even managed to find a reference to using an Ubuntu source to install Freenx from the .deb packages that they provide since for some reason Debian doesn't (so that's something I won't have to do without - yay!). However, I've had no luck finding any useful information on this one particular item; maybe I'm just not wording the search correctly. I'm hoping someone here can give me a hand. In Mandriva, they use a wrapper to rpm called urpm{x} (where {x} represents an action that you want to do i for install, e for erase, etc.). There are options that allow you to see what files are related to packages, whether they are installed in the system or not. There are two in particular that I'd like to have happen here. In Mandriva if I enter: urpmq -i {somepackage} I will get an output that's pretty similar to what I get if I enter: aptitude show {somepackage} in Debian. So far, so good. However, on the Mandriva side, if I enter: urpmq -fi {somepackage} I'll get the package information *and* a listing of all files provided by that package. I can't seem to figure out (or find out) how to do that same thing in Debian. Is there a way? And if so, how to do it? As to the second variation on this theme, under Mandriva, if I enter: urpmf {somefilename} It will spit back a list of all packages that provide that filename or any part of it. It's treated like a substring - for example if I type urpmf kross it will list the package that provides /usr/bin/kross, and will then go on to show other packages that have that string in it like /usr/lib64/libkokross.so.7 and so on. This can be controlled by entering something like urpmf /usr/bin/kcross, though other things in /usr/bin that start with kcross will also show up. I haven't figured or found out yet how to get that kind of search functionality within Debian. So as above, is there a way to do this, and if so, how? Thanks for any help! --Dave I believe you are looking for dpkg-query... Which packages provides files with 'pattern' in the name? dpkg-query -S kross dpkg-query -S bin/kross What files does kdelibs-bin provide? dpkg-query -L kdelibs-bin What are the details for package kdelibs-bin? dpkg-query -p kdelibs-bin -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20121746.06489.neal.p.mur...@alum.wpi.edu
Re: apt / aptitude question
Hello, Mandriva refugee here. :-) New to Debian, but have been using some form of *NIX since 1986. - 8 - It will spit back a list of all packages that provide that filename or any part of it. It's treated like a substring - for example if I type urpmf kross it will list the package that provides /usr/bin/kross, and will then go on to show other packages that have that string in it like /usr/lib64/libkokross.so.7 and so on. This can be controlled by entering something like urpmf /usr/bin/kcross, though other things in /usr/bin that start with kcross will also show up. I haven't figured or found out yet how to get that kind of search functionality within Debian. So as above, is there a way to do this, and if so, how? And in addition to Neals answer, there is also apt-file that can be used like this: apt-file search something apt-file list package - before doing apt-file search, you should run apt-file update. See the manpage for more info. -- Andreas Rönnquist mailingli...@gusnan.se gus...@gusnan.se signature.asc Description: PGP signature
Re: apt / aptitude question
Andreas Rönnquist grabbed a keyboard and wrote: [I wrote]: It will spit back a list of all packages that provide that filename or any part of it. It's treated like a substring - for example if I type urpmf kross it will list the package that provides /usr/bin/kross, and will then go on to show other packages that have that string in it like /usr/lib64/libkokross.so.7 and so on. This can be controlled by entering something like urpmf /usr/bin/kcross, though other things in /usr/bin that start with kcross will also show up. I haven't figured or found out yet how to get that kind of search functionality within Debian. So as above, is there a way to do this, and if so, how? And in addition to Neals answer, there is also apt-file that can be used like this: apt-file search something apt-file list package - before doing apt-file search, you should run apt-file update. See the manpage for more info. Thanks to both you and Neal for the replies. Interesting to see the multiple ways of getting the same information. :-) In my Google searching, I had come upon a fairly old forum posting referencing apt-file, but when I tried typing that command in, I got a not found - turns out that the program wasn't installed by default when I installed Debian. I came to the wrong conclusion that it was part of the apt system and must have been removed somewhere along the way from the time of the posting. Guess that's what I get for not bothering to do an aptitude search for it to see if it was a separate package. Duh. :-) I've installed it and tested it, and it's working exactly the way I want, so thanks again! --Dave signature.asc Description: OpenPGP digital signature
Re: apt / aptitude question
David Guntner dav...@akamail.net writes: Andreas Rönnquist grabbed a keyboard and wrote: [I wrote]: It will spit back a list of all packages that provide that filename or any part of it. It's treated like a substring - for example if I type urpmf kross it will list the package that provides /usr/bin/kross, and will then go on to show other packages that have that string in it like /usr/lib64/libkokross.so.7 and so on. This can be controlled by entering something like urpmf /usr/bin/kcross, though other things in /usr/bin that start with kcross will also show up. I haven't figured or found out yet how to get that kind of search functionality within Debian. So as above, is there a way to do this, and if so, how? And in addition to Neals answer, there is also apt-file that can be used like this: apt-file search something apt-file list package - before doing apt-file search, you should run apt-file update. See the manpage for more info. Thanks to both you and Neal for the replies. Interesting to see the multiple ways of getting the same information. :-) They are slightly different. The dpkg way will only work for installed packages. apt-file will work for packages whether they are installed or not (the apt-file update downloads everything it needs). In my Google searching, I had come upon a fairly old forum posting referencing apt-file, but when I tried typing that command in, I got a not found - turns out that the program wasn't installed by default when I installed Debian. I came to the wrong conclusion that it was part of the apt system and must have been removed somewhere along the way from the time of the posting. Guess that's what I get for not bothering to do an aptitude search for it to see if it was a separate package. Duh. :-) I've installed it and tested it, and it's working exactly the way I want, so thanks again! --Dave -- regards, kushal -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87txsvl55s.fsf@nitrogen.i-did-not-set--mail-host-address--so-tickle-me