You are not logged in.
how can i show an uninstalled package as it is installed to the pacman?
TuX We TrusT
Offline
Niye böyle bir şey yapmak istiyorsunuz ki ? Böyle bir şey yapmanıza gerek olmaması lazım..
Quis custodiet ipsos custodiet?
Offline
Doesn't make sense to me. oO
What do you want?
Hail to the thief!
Offline
Ok, guess i haven't installed xmms. But when i type:
pacman -Q xmms
i want to see something like that:
#pacman -Q xmms
xmms 1.2.10-7
How can i do it?
TuX We TrusT
Offline
pacman -S xmms
Offline
pacman -Ss = apt-cache search = yum list
At least sort of. I think pacman -Ss is what you're looking for - it looks for matches in the name or description of packages.
Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein
Offline
No no , that's not what i'm looking for.
For example i compile xmss by myself. So when i write this to the console
pacman -Q xmms
i couldn't see it. I mean when i compile a package by myself (without pacman) how can i see it as i installed with pacman?
TuX We TrusT
Offline
i couldn't see it. I mean when i compile a package by myself (without pacman) how can i see it as i installed with pacman?
You can't. That's why you should write PKGBUILDs instead of compiling/installing things by hand.
Offline
pacman only knows about packages installed by pacman - fairly logical, I think. If you want to compile your own packages (why?) and have them under pacman's control, use ABS (Arch Build System) - details in the wiki.
Offline
Yes. I know PKGBUILDs and ABS.
But i think, It's strange. How can "pacman -Q" understand installed packages? There should be a trick.
TuX We TrusT
Offline
Why is it strange?
In order for a package manager to see what is installed, it must have a database that keeps track of the files that belong to the programs.
How else would you know if file XXX belongs to program A or B?
And this is what pacman does for you.
When you compile the program yourself, no entry is made into this database - of course not, cause what does the program care what package manager you use, be it apt-get or yum or pacman or none at all!
This is why either your question was misunderstood, or people were recommending the use of ABS.
Cheers,
Blind
Offline
If you're looking for a "trick", search the forum for checkinstall - various attempts have been made to adapt it to Arch, or create an equivalent.
In the long run, though, it would be quicker for you to get to know ABS - and, of course, to use the compiled packages already available in the Arch repos when applicable e.g. xmms (your example), and every other popular piece of software.
Offline