Questions in category: openSUSE (openSUSE)
软件 >> Linux >> openSUSE

1. [openSUSE] zypper search -t pattern

Posted by haifeng on 2024-10-26 09:53:25 last update 2024-10-26 10:58:12 | Answers (0) | 收藏


zypper search -t pattern
zypper info -t pattern devel_basis
 
sudo zypper install -t pattern 32bit
 
sudo zypper install glibc-devel-32bit
 
sudo zypper in libstdc++6

sudo zypper in libstdc++6-32bit

 
haifeng@LAPTOP-Q34L5TP8:~/work/c++/calculator/build> sudo zypper in gcc-c++-32bit
Loading repository data...
Reading installed packages...
Resolving package dependencies...
 
The following 13 packages are going to be upgraded:
  cpp14 gcc14 gcc14-c++ libasan8 libatomic1 libgcc_s1 libgomp1 libhwasan0 libitm1 liblsan0 libstdc++6-devel-gcc14
  libtsan2 libubsan1
 
The following 10 NEW packages are going to be installed:
  gcc14-32bit gcc14-c++-32bit gcc-32bit gcc-c++-32bit libasan8-32bit libatomic1-32bit libgomp1-32bit libitm1-32bit
  libstdc++6-devel-gcc14-32bit libubsan1-32bit
 
13 packages to upgrade, 10 new.
 
Package download size:    99.7 MiB
 
Package install size change:
              |     313.4 MiB  required by packages that will be installed
    49.6 MiB  |  -  263.9 MiB  released by packages that will be removed
 
Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y):

2. [openSUSE] 安装 VSCode

Posted by haifeng on 2024-10-13 17:24:39 last update 2024-10-13 18:54:49 | Answers (0) | 收藏



 

zypper ar -cf https://download.opensuse.org/repositories/devel:/tools:/ide:/vscode/openSUSE_Tumbleweed devel_tools_ide_vscode

zypper in code


haifeng@LAPTOP-Q34L5TP8:~> sudo zypper ar -cf https://download.opensuse.org/repositories/devel:/tools:/ide:/vscode/openSUSE_Tumbleweed devel_tools_ide_vscode
Adding repository 'devel_tools_ide_vscode' ............................[done]
Repository 'devel_tools_ide_vscode' successfully added
 
URI         : https://download.opensuse.org/repositories/devel:/tools:/ide:/vscode/openSUSE_Tumbleweed
Enabled     : Yes
GPG Check   : Yes
Autorefresh : Yes
Priority    : 99 (default priority)
 
Repository priorities are without effect. All enabled repositories share the same priority.
 

 

haifeng@LAPTOP-Q34L5TP8:~> sudo zypper in code
 
New repository or package signing key received:
 
  Repository:       devel_tools_ide_vscode
  Key Fingerprint:  386B 1424 DA40 F724 3D42 FFF7 5202 E0E6 A755 8516
  Key Name:         devel:tools:ide OBS Project
  Key Algorithm:    RSA 2048
  Key Created:      Tue 31 Oct 2023 03:29:30 AM CST
  Key Expires:      Thu 08 Jan 2026 03:29:30 AM CST
  Rpm Name:         gpg-pubkey-a7558516-6540041a
 
 
 
    Note: Signing data enables the recipient to verify that no modifications occurred after
    the data were signed. Accepting data with no, wrong or unknown signature can lead to a
    corrupted system and in extreme cases even to a system compromise.
 
    Note: A GPG pubkey is clearly identified by its fingerprint. Do not rely on the key's
    name. If you are not sure whether the presented key is authentic, ask the repository
    provider or check their web site. Many providers maintain a web page showing the
    fingerprints of the GPG keys they are using.
 
Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r):
 

 

 

haifeng@LAPTOP-Q34L5TP8:~> sudo zypper install patterns-kde-kde
[sudo] password for root:
Loading repository data...
Reading installed packages...
'patterns-kde-kde' is already installed.
No update candidate for 'patterns-kde-kde-20240311-2.3.noarch'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
 
haifeng@LAPTOP-Q34L5TP8:~> sudo zypper in sddm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
 
The following 25 NEW packages are going to be installed:
  blog libblogger2 libXaw7 libXmu6 libXpm4 libXt6 logrotate qtdeclarative-imports-provides-qt5 sddm
  sddm-greeter-qt5 sddm-greeter-qt6 sessreg setxkbmap sysvinit-tools xauth xbitmaps xconsole xdm xinit xli
  xmessage xmodmap xset xterm-bin xterm-resize
 
25 new packages to install.
 
Package download size:     6.9 MiB
 
Package install size change:
              |      11.0 MiB  required by packages that will be installed
    11.0 MiB  |  -      0 B    released by packages that will be removed
 
Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 
 

Reference:

Visual Studio Code - openSUSE Wiki

3. [openSUSE] 使用 alias 查询别名

Posted by haifeng on 2024-10-11 17:18:41 last update 2024-10-11 20:26:49 | Answers (0) | 收藏


haifeng@LAPTOP:~> alias
alias +='pushd .'
alias -- -='popd'
alias ..='cd ..'
alias ...='cd ../..'
alias beep='echo -en "\007"'
alias cd..='cd ..'
alias dir='ls -l'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ip='ip --color=auto'
alias l='ls -alF'
alias la='ls -la'
alias ll='ls -l'
alias ls='_ls'
alias ls-l='ls -l'
alias md='mkdir -p'
alias o='less'
alias rd='rmdir'
alias rehash='hash -r'
alias unmount='echo "Error: Try the command: umount" 1>&2; false'
alias you='if test "$EUID" = 0 ; then /sbin/yast2 online_update ; else su - -c "/sbin/yast2 online_update" ; fi'