我去debian上安装了imagick PECL扩展。我错误地安装了ImageMagick,其中包含75 MB不必要的依赖项。有人可以帮助我,并告诉我最简单的方法来删除它并返回75 MB
<code>apt-get install imagemagick
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fontconfig fonts-droid ghostscript gsfonts hicolor-icon-theme
imagemagick-common libavahi-client3 libcairo2 libcups2 libcupsimage2
libdatrie1 libdjvulibre-text libdjvulibre21 libexiv2-12 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgs9 libgs9-common libice6 libijs-0.35 libilmbase6
libjasper1 libjbig0 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data
liblensfun0 liblqr-1-0 libmagickcore5 libmagickcore5-extra libmagickwand5
libnetpbm10 libopenexr6 libpango1.0-0 libpaper-utils libpaper1 libpixman-1-0
librsvg2-2 librsvg2-common libsm6 libthai-data libthai0 libtiff4 libwmf0.2-7
libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxt6 netpbm poppler-data
ufraw-batch x11-common
Suggested packages:
ghostscript-cups ghostscript-x hpijs imagemagick-doc autotrace cups-bsd lpr
lprng enscript ffmpeg gimp gnuplot grads hp2xx html2ps libwmf-bin mplayer
povray radiance sane-utils texlive-base-bin transfig xdg-utils cups-common
exiv2 libjasper-runtime liblcms-utils liblcms2-utils ttf-baekmuk
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
ttf-arphic-bkai00mp librsvg2-bin poppler-utils fonts-japanese-mincho
fonts-ipafont-mincho fonts-japanese-gothic fonts-ipafont-gothic
fonts-arphic-ukai fonts-arphic-uming fonts-unfonts-core ufraw
The following NEW packages will be installed:
fontconfig fonts-droid ghostscript gsfonts hicolor-icon-theme imagemagick
imagemagick-common libavahi-client3 libcairo2 libcups2 libcupsimage2
libdatrie1 libdjvulibre-text libdjvulibre21 libexiv2-12 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgs9 libgs9-common libice6 libijs-0.35 libilmbase6
libjasper1 libjbig0 libjbig2dec0 liblcms1 liblcms2-2 liblensfun-data
liblensfun0 liblqr-1-0 libmagickcore5 libmagickcore5-extra libmagickwand5
libnetpbm10 libopenexr6 libpango1.0-0 libpaper-utils libpaper1 libpixman-1-0
librsvg2-2 librsvg2-common libsm6 libthai-data libthai0 libtiff4 libwmf0.2-7
libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxt6 netpbm poppler-data
ufraw-batch x11-common
0 upgraded, 55 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.7 MB of archives.
After this operation, 75.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?</code>
答案 0 :(得分:0)
运行dpkg -L imagemagick
并记下该包中的文件。
运行apt-get remove imagemagick
以删除软件包。
再次运行dpkg -L imagemagick
以查看文件是否仍然存在。
答案 1 :(得分:0)
apt-get remove imagemagick
<!DOCTYPE html>
<html ng-app="myApp" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script>
var app = angular.module('myApp', []);
app.controller('MainCtrl', function ($scope) {
$scope.cityArray = ["hyderabad", "secunderabad", "delhi", "mumbai"];
$scope.submit = function ($event) {
if ($scope.myForm.$invalid) {
// Or some other update
$scope.myForm.$submitted = true;
$event.preventDefault();
}
}
});
app.directive('nxEqualEx', function () {
return {
require: 'ngModel',
link: function (scope, elem, attrs, model) {
if (!attrs.nxEqualEx) {
console.error('nxEqualEx expects a model as an argument!');
return;
}
scope.$watch(attrs.nxEqualEx, function (value) {
// Only compare values if the second ctrl has a value.
if (model.$viewValue !== undefined && model.$viewValue !== '') {
model.$setValidity('nxEqualEx', value === model.$viewValue);
}
});
model.$parsers.push(function (value) {
// Mute the nxEqual error if the second ctrl is empty.
if (value === undefined || value === '') {
model.$setValidity('nxEqualEx', true);
return value;
}
var isValid = value === scope.$eval(attrs.nxEqualEx);
model.$setValidity('nxEqualEx', isValid);
return isValid ? value : undefined;
});
}
};
});
</script>
<title>Registration Form</title>
</head>
<body ng-controller="MainCtrl">
<div class="container">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-login">
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<h2 class="text-muted">Registration form</h2>
<div>
<form name="myForm" action="RegistrationServlet.do" method="POST" novalidate>
Password:
<input type="password" nx-equal-ex="pwd" class="form-control" name="pwd" ng-model="pwd" required placeholder="Password"/>
<span style="color:red" ng-show="form.pwd.$error.nxEqualEx">Must be equal!</span>
Confirm Password:<input type="password" nx-equal-ex="pwd2" class="form-control" ng-model="pwd2" name="pwd2" required placeholder="Confirm Password"/>
<span style="color:red" ng-show="form.pwd2.$error.nxEqualEx">Must be equal!</span>
<button class="form-control btn btn-success" type="submit" ng-click="submit($event)">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
之后我删除了95 Mb。
答案 2 :(得分:0)
要删除包,请执行以下操作:
apt-get remove <package-name>
但是,如果您想要根除,那么您可以:
apt-get purge <package-name>
现在,当因为你安装另一个软件包而安装软件包时,这是一个依赖项,所以你不想删除它。
答案 3 :(得分:-2)
好吧,我按包裹apt-get remove
打包了。