soft package install

简介:

RPM - Red Hat Package Management 
Install - rpm -i ***.rpm 
Upgrade -rpm -Uvh ***.rpm 
Erase/uninstall - rpm -e package-name 
Force installation -rpm -Uvh --force --nodeps ***.rpm 
Query package - rpm -q package-name

Debian  Package Managment (.debs) 

Firstly edit /etc/apt/sources.list and add your closest mirror and cds with debian on: 
Example 
deb ftp://ftp.us.debian.org/debian stable main contrib non-free 
deb cdrom:[Debian GNU/Linux 2.2 r0 _Potato_ - Official i386 Binary-1 (20000814)] 
then run apt-get update 
DPKG 
install - dpkg -i package.deb 
remove/uninstall - dpkg -r package 
List files asscoiated with package -dpkg -L package 
Version - dpkg -l package 
Unpack A deb - dpkg -unpack package.deb 
APT 
install - apt-get install <package> 
search - apt-cache search <package> 
remove - apt-get remove <package> 
(When using apt-get to download off the Internet, the .deb files are placed in /var/cache/apt/archives) 
Network Side 

  • Allow Hosts -edit/etc/hosts.allow     #Example Service:IP-ADDRESS
  • Deny Hosts - edit /etc/hosts.allow      # Example ALL:ALL
  • Hosts on Network - edit/etc/hosts
  • #Example   IPADDRESS     HOSTNAME     HOSTNAME.DOMAINNAME
  • Set Hostname - hostname <hostname>
  • Nameservers - edit /etc/resolv.conf

KernelUpgrade
(Refer to  Joey's upgrading kernel guide for full instructions.) 
cp  linux-*.*.*.tar.gz ; tar zxvf linux-*.*.*.tar.gz ; mv linux /usr/src/linux-*.*.* 
cd /usr/src/linux ; make menuconfig  (go to bottom save config to a file /usr/src/oldconfig) 
rm /usr/src/linux ; ln -s /usr/src/linux-*.*.* ; cd /usr/src/linux 
make menuconfig (go to bottom load up config file /usr/src/oldconfig, save and and exit) 
make dep; make clean; make bzImage; make modules; make modules_install; make install ; reboot
 
   Sound Configuration  
Redhat Distribution: run  sndconfig  
In Debian: Compile soundcard module into kernel 
                        Edit  /etc/modules  
In Slackware: Compile module into kernel 
                        Edit /etc/rc.d/rc.modules  
Useful Information 
  • run cat on these files - cat /proc/<filename>
  • Install nmap -nmap <Your IP>          <- Will list ports open
  • Edit /etc/fstab- place in partitions and drives to be mount
  • Edit /etc/inittab- Change Runlevel (ie X or Console)
  • Edit /etc/inetd.conf- Add/Remove Services
  • Edit /etc/syslog.conf - Information on log files
  • Useful commands - free ; ps aux ; top
  • Changing Window Manager in Debian - update-alternatives x-window-manager
  • Changing Window Manager in Slackware -xwmconfig
  • Progammer? Use Vim? - Edit .vimrcadd these lines
set autoindent 
    syn on 
    set cindent
 

Themes
 

Window Maker
 
mv wm-theme.tar.gz ~/GNUstep/Library/WindowMaker 
cd ~/GNUstep/Library/WindowMake 
tar zxvf wm-theme.tar.gz
 
(Right click, Work space>Appearance&gt;Themes&gt;WM-theme) 
Enlightenment  
mv e-theme.tar.gz /usr/share/enlightenment/themes/ || ~/.enlightenment/themes/  
run  e-conf  

gtk
 
mkdir ~/themes ; mkdir ~/themes/gnome/  
mv gtk-theme.tar.gz 
gnomecc
      (Desktop &gt;Theme selector) 
Sawfish  

cp sawfish-theme.tar.gz  /usr/share/sawmill || ~./sawmill/themes/

本文转自孤舟夜航之家博客51CTO博客,原文链接http://blog.51cto.com/cysky/559909如需转载请自行联系原作者


cysky

相关文章
|
4月前
|
缓存 Linux 开发工具
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
207 0
|
6月前
|
数据安全/隐私保护 Python
【Python】已解决:WARNING: Ignoring invalid distribution -addlepaddle (d:\soft\python36\lib\site-packages)
【Python】已解决:WARNING: Ignoring invalid distribution -addlepaddle (d:\soft\python36\lib\site-packages)
1397 1
|
6月前
|
Python
安装 supervisor报错执行python setup.py install时No local packages or working download links found for meld3
安装 supervisor报错执行python setup.py install时No local packages or working download links found for meld3
61 0
|
Python
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
解决loaded more than 1 DLL from .libs和No metadata found in lib\site-packages两个错误
638 0
Conda 卸载包报错:PackagesNotFoundError: The following packages are missing from the target environment:
Conda 卸载包报错:PackagesNotFoundError: The following packages are missing from the target environment:
Conda 卸载包报错:PackagesNotFoundError: The following packages are missing from the target environment:
解决办法:.No package ‘freetype2‘ found
解决办法:.No package ‘freetype2‘ found
381 0
No package 'libxml-2.0' found
No package 'libxml-2.0' found
342 0
|
缓存 Linux 应用服务中间件
【在下版本,有何贵干?】Dockerfile中 RUN yum -y install vim失败Cannot prepare internal mirrorlist: No URLs in mirrorlist
【在下版本,有何贵干?】Dockerfile中 RUN yum -y install vim失败Cannot prepare internal mirrorlist: No URLs in mirrorlist
1073 0
【在下版本,有何贵干?】Dockerfile中 RUN yum -y install vim失败Cannot prepare internal mirrorlist: No URLs in mirrorlist
|
Ubuntu
WARNING: The scripts f2py, f2py3 and f2py3.9 are installed in ‘/home/ubuntu/.local/bin‘ which is no
WARNING: The scripts f2py, f2py3 and f2py3.9 are installed in ‘/home/ubuntu/.local/bin‘ which is no
614 0
WARNING: The scripts f2py, f2py3 and f2py3.9 are installed in ‘/home/ubuntu/.local/bin‘ which is no
|
Linux 测试技术
rpm快速打包工具 --- rpm-package
rpm包作为redhat、centos系列操作系统的包管理工具,让我们可以轻松通过`yum install xxx.rpm`命令安装某些软件包。本项目介绍文件打包方法,用于将任意文件按照描述文件的组织方式打包成rpm包。