peabody
August 6th, 2006, 08:52 PM
I've recently switched over from Fedora to Ubuntu and am loving it. I was always a Debian fan but often felt both Debian testing and stable were far too behind the latest software and I never felt like running unstable. Fedora was a pain, but I liked it for the fact that it was highly bleeding edge and stable. Now with Ubuntu I feel I have the best of both worlds.
However, there were two things that I liked about yum. It was easy to generate a list of available packages from the command line and it was easy to install packages on the file system with automatic dependency resolution. In Fedora, this was all you had to do to install an rpm with depedency resolution:
sudo yum localinstall *.rpm.
I finally figured out how to do something similar with apt using the following document:
http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html
section 2.2 goes over how to setup filesystem repositories. Something tells me there isn't a good reason that this should be so involved. Sure it's necessary if you have a repository of packages on a CD or a network share, but it seems asinine to have to go through the same procedure for just one or two packages.
[Edit: Disregard the below. I've found my solution. apt-cache search <name>. Where have you been all my life?]
I would also typically generate a list of packages by the following on fedora:
sudo yum list > packages
this would give me a text file called packages that I could grep through when I was looking for something. I've done some research and this is the only equivalent I can find with apt; an ugly piece of shell magic:
cat `ls /var/lib/apt/lists/*_Packages` | grep "^Package:" | cut -d: -f 2
Perhaps there's a better way to do it? I'm perfectly well aware of all the GUI tools at my disposal, but I'm a CLI kinda guy. It's not that I won't use GUI's but I prefer a shell solution in the long term.
Anybody wish to enlighten me to a better solution I'm unaware of?
However, there were two things that I liked about yum. It was easy to generate a list of available packages from the command line and it was easy to install packages on the file system with automatic dependency resolution. In Fedora, this was all you had to do to install an rpm with depedency resolution:
sudo yum localinstall *.rpm.
I finally figured out how to do something similar with apt using the following document:
http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html
section 2.2 goes over how to setup filesystem repositories. Something tells me there isn't a good reason that this should be so involved. Sure it's necessary if you have a repository of packages on a CD or a network share, but it seems asinine to have to go through the same procedure for just one or two packages.
[Edit: Disregard the below. I've found my solution. apt-cache search <name>. Where have you been all my life?]
I would also typically generate a list of packages by the following on fedora:
sudo yum list > packages
this would give me a text file called packages that I could grep through when I was looking for something. I've done some research and this is the only equivalent I can find with apt; an ugly piece of shell magic:
cat `ls /var/lib/apt/lists/*_Packages` | grep "^Package:" | cut -d: -f 2
Perhaps there's a better way to do it? I'm perfectly well aware of all the GUI tools at my disposal, but I'm a CLI kinda guy. It's not that I won't use GUI's but I prefer a shell solution in the long term.
Anybody wish to enlighten me to a better solution I'm unaware of?