In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of the apk command in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
APK is an application package file format used by the android operating system to distribute and install mobile applications and middleware
Apk uses the instance apk install xxx apk search xxx # to support regular apk info xxx # to view the details of packages apk show # list local package # Uninstall and delete packages apk del openssh openntp vim upgrade upgrade commands to upgrade all packages installed in the system (generally including the kernel), of course, you can also specify to upgrade only some packages (specified by-u or-upgrade option).
Apk update # update the latest local mirror source apk upgrade # upgrade software apk add-- upgrade busybox # specify the upgrade part of the package search apk search # find the available package apk search-v # find so the available package and its description apk search-v 'acf*' # find the package apk search-v-d' docker' # find the specific package through the description file Package View package Information the info command is used to display information about the package.
Apk info # lists all installed packages apk info-a zlib # displays complete package information apk info-- who-owns / sbin/lbu # shows that the package notes to which the specified file belongs are quite fond of alpine, simple and pure
Apk add iproute2 # ss vs netstat ss-ptl apk add drill # drill vs nslookup&dig crond # enable the cron service crontab-l-e apk add xxx apk search-v xxx apk info-a xxx apk info echo-e "http://mirrors.aliyun.com/alpine/v3.6/main\nhttp://mirrors.aliyun.com/alpine/v3.6/community" > / etc/apk/repositories apk update # storage ibu # alpine local backup # network echo" shortname "> / etc/hostname hostname-F / Etc/hostname / etc/hosts / etc/resolv.conf # conig DNS modprobe ipv6 # enable ipv6 echo "ipv6" > / etc/modules iface # config interface apk add iptables ip6tables iptables-doc / etc/init.d/networking restart # activate change apke add iputils # IPv6 traceroute traceroute6 ipv6.google.com awall # alpine wall # setup an openvpn server # post-install / etc/apk/repositories apk add cherokee-update-cache-repository http://dl-3.alpinelinux.org/alpine/edge/testing/-allow-untrusted Apk search-v-- description 'NTP' # show description and search from description apk info-a zlib apk info-vv | sort apk info-r-R # require / depency apk version-v-l' # show available updates apk upgrade-U-an apk add-u xxx # update xxx / etc/runlevels # runlevel apk add openrc # use openrc for init system rc-update add xxx # set to start on rc-service xxx start # equal-> / etc/init.d/xxx start rc-status adduser xxx passwd xxx apk add ansible # server ssh -keygen / etc/ansible/hosts apk add python # node ssh-copy-id apk add man man-pages mdocml-apropos less less-doc export PAGER=less / etc/rc.conf # / etc/rc.conf-> funny character apk add bash bash-doc bash-completion # bash apk add util-linux pciutils usbutils coreutils binutils findutils grep # grep / awk apk add build-base gcc abuild binutils binutils-doc gcc-doc # compile apk add cmake cmake-doc extra-cmake-modules extra-cmake-modules-doc apk add ccache ccache-doc apk add docker # docker rc-update add docker boot rc-service docker start apk add py-pip pip install docker-compose ln-s / usr/bin/docker-compose / usr/bin/doc # application apk add openssh # ssh rc-update add sshd / etc/init.d/sshd start / etc/sshd_config apk add dropbear # another openssh implementation Thank you for reading this article carefully I hope the article "what is the use of apk commands in Linux" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.