Genel

Linux RPMs

RPMs

l’m constantly having problems vvith rpms. My trouble is, I try a lot of stuff, but I don’t have a huge amount of disk space for Linux to play vvith. When I come to remove it again (RPMs are supposed to make this easy too, right?) I usually end up searching for hours vvith something like kpackage to remove it. l’m happy to do it from the terminal because I find this easier, and frankly a lot faster, but it’s often difficult to remember the exact name of the package. Any suggestions. Frank, via ema

| Mmmm. This sounds like one for gnep. You can use the rpm —query to find out | if a particular package is installed. You can also query the database for ali the packages installed using: rpm ~qa

Hovvever, this vvill print off reams of names and version numbers, and you’ll be in much the same position as before. So the cunning vvay to do this is to pipe the output through grep. Grep is a tool vvhich searches through input and tries to match a given pattern. So, if you even knovv just vaguely vvhat the package might have been called, you can search for it vvith the line:
This vvill find ali packages vvith ‘drak’ in the name.

Alternatively, if you knovv the location of one of the fileş installed by the no-longer vvanted package, you can use: rpm-qf <fiiename-including path>

vvhich vvill retum the full name of the package vvhich installed it.

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir