hi all
How to know all installed packages ?
im test in konsole
rpm -qa | less
its not good >:( ( konsole Do not save lines many :disapointed:)
hi all
How to know all installed packages ?
im test in konsole
rpm -qa | less
its not good >:( ( konsole Do not save lines many :disapointed:)
Do you want a list of RPMs or the actual packages as known by YaST?
For the former, I take it your complaint is that you donāt know how to save the output of rpm.
Try this:
rpm -qa > /tmp/mypackages.txt
You can then open /tmp/mypackages.txt in your favourite text editor.
Alternatively, try going to āSoftware Managementā in YaST, and then doing File > Export, and placing the file in a location you find convenient.
Then, open it with your favourite text editor or web browser.
HTH
On Thu, 18 Sep 2014 03:16:01 +0000, maxray wrote:
> hi all
> How to know all installed packages ?
>
> im test in konsole
>
>
> Code:
> --------------------
> rpm -qa | less
> --------------------
>
>
> its not good >:( ( konsole Do not save lines many :disapointed:)
Use:
rpm qa > file.txt
Then open the file in your favourite text editor.
Jim
ā
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
On 2014-09-18 05:16, maxray wrote:
>
> hi all
> How to know all installed packages ?
>
> im test in konsole
>
>
> Code:
> --------------------
> rpm -qa | less
> --------------------
>
>
> its not good >:( ( konsole Do not save lines many :disapointed:)
Well, that is what ālessā is for. Just page up and down as needed.
Hint: ālessā has help on āhā.
ā
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 āBottleā at Telcontar)
Thanks for all
I like this
rpm -qa --qf "%{NAME}
" > /tmp/mypackages.txt
My question is, why do you need to know all the packages installed? or what is the end goal. Note that also print patches and pattern AFAIK.
Another option would be parsing the output of zypper but it might be printing patches and patterns too.
zypper se -si | awk '/^i/{print $3}'
Right it does print patch and pattern
zypper se -si | awk '/^i/ && $5 !~ /package/' | less
Or
zypper se -si | awk '/^i/ && $5 !~ /package/{printf("%-20s %s
", $3, $5)}' | less
On 2014-09-20 05:46, jetchisel wrote:
>
> Right it does print patch and pattern
zypper does, but rpm, which what maxray is using, doesnāt
ā
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 āBottleā at Telcontar)
but it prints gpg-pubkeys at least for me.
rpm -qa --qf '%{NAME}
' | grep gpg-pubkey
rpm -qa gpg-pubkey
gpg-pubkey-1abd1afb-54176598
gpg-pubkey-1c9d570b-53425542
gpg-pubkey-7fac5991-4615767f
gpg-pubkey-72174fc2-5226025d
gpg-pubkey-866612e7-5197f6b1
gpg-pubkey-307e3d54-4be01a65
gpg-pubkey-3dbdc284-53674dd4
gpg-pubkey-6867f5be-4d77cecd
gpg-pubkey-c66b6eae-4491871e
gpg-pubkey-98ab5139-4bf2d0b0
Not sure if that matters though but i did some more digging and here it is.
If you take a look deeper rpm prints gpg-pubkey and zypper does not.
Running diff between the output of rpm and zypper.
diff <(rpm -qa --qf '%{NAME}
'| sort) <(zypper se -si | awk '/^i/ && $5 ~ /package/{print $3}'| sort)
Or using comm.
comm -3 <(rpm -qa --qf '%{NAME}
'| sort) <(zypper se -si | awk '/^i/ && $5 ~ /package/{print $3}'| sort)
Counting all the package via rpm
rpm -qa --qf '%{NAME}
'| wc -l
Also via zypper
zypper se -si | awk '/^i/ && $5 ~ /package/{print $3}'|wc -l
It should give different results, at least i have different results .
If you skip gpg-pubkey when using rpm that might do the trick though.
rpm -qa --qf '%{NAME}
'| awk '!/gpg-pubkey/'
rpm -qa --qf '%{NAME}
'|awk '!/gpg-pubkey/' | wc -l
Now check those output with diff and comm.
diff <(rpm -qa --qf '%{NAME}
'| awk '!/gpg-pubkey/'| sort) <(zypper se -si | awk '/^i/ && $5 ~ /package/{print $3}'| sort)
echo $?
0
Zero means that both output has the same result, which means success. Comments and criticism are welcome anytime ;).
Sorry here is the comm
comm -3 <(rpm -qa --qf '%{NAME}
'| awk '!/gpg-pubkey/'| sort) <(zypper se -si | awk '/^i/ && $5 ~ /package/{print $3}'| sort)
echo $?
0
On 2014-09-20 15:26, jetchisel wrote:
>
> but it prints gpg-pubkeys at least for me.
Yes, it does. They are actual packages.
You can use rpm -qi on them.
> If you take a look deeper rpm prints gpg-pubkey and zypper does not.
Trueā¦ I did not know that zypper did not.
> Or using comm.
I had forgotten commā¦
The output of ārpmā tells what is really installed, thatās the master
list. Zypper instead can list the list of applied patches. A patch is
not a package, but it converts one package from one version to another
one. So rpm lists the resulting version of the package.
So there are difference between bothā¦
ā
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 āBottleā at Telcontar)
thnks
zypper se -si | awk '/^i/{print $3}'
more than lol!
rpm -qa --qf "%{NAME}
" > /tmp/mypackages.txt
My question is, why do you need to know all the packages installed?
i need for inastall software in suse studio in shrt time rotfl!
Copy the names of packages >thin> paste in Add quick (-:
Good Luck with your susestudio image :).