Jump to content

dnf check-update jak się pozbyć pewnych linii z wyniku


Recommended Posts

Witam

Dla przykładu filtruję glib:

dnf check-update | grep glib

wynik:

Aktualizowanie i ładowanie repozytoriów:
Załadowano repozytoria.
glib2.i686                                        2.86.4-1.fc43               updates
glib2.x86_64                                      2.86.4-1.fc43               updates
glib2-devel.x86_64                                2.86.4-1.fc43               updates
glibc.i686                                        2.42-9.fc43                 updates
glibc.x86_64                                      2.42-9.fc43                 updates
glibc-all-langpacks.x86_64                        2.42-9.fc43                 updates
glibc-common.x86_64                               2.42-9.fc43                 updates
glibc-devel.x86_64                                2.42-9.fc43                 updates
glibc-gconv-extra.i686                            2.42-9.fc43                 updates
glibc-gconv-extra.x86_64                          2.42-9.fc43                 updates
pulseaudio-libs-glib2.x86_64                      17.0-9.fc43                 updates


Jak pozbyć się tych dwóch pierwszych linii. Przekierowanie 2>/dev/null nie pomaga.

Po przekierowaniu do pliku to w pliku ich nie ma, ale w terminalu są. Czym są te linie? Po przekierowaniu do less są.

"grep -v" nie działa na nie.

Radek Glebicki

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...